Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002086/0.002086, allocations: 211 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.417/1.417, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 51.92 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2397, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.0038/0.2435, allocations: 2.241 MB / 433.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.245, allocations: 0.7715 MB / 434.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.2451, allocations: 7.938 kB / 434.1 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002961/0.2454, allocations: 47.62 kB / 434.1 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002161/0.2456, allocations: 67.5 kB / 434.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004599/0.2461, allocations: 163.7 kB / 434.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000418/0.2465, allocations: 371.6 kB / 434.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.2467, allocations: 67.61 kB / 434.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002929/0.247, allocations: 179.4 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002493/0.2472, allocations: 179.3 kB / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.346e-05/0.2473, allocations: 40 kB / 435.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.186e-05/0.2473, allocations: 32 kB / 435.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.2475, allocations: 99.7 kB / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000127/0.2476, allocations: 115.4 kB / 435.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004211/0.248, allocations: 336.5 kB / 435.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.248, allocations: 4 kB / 435.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.248, allocations: 0 / 435.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.248, allocations: 0 / 435.8 MB, free: 1.938 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001237/0.2493, allocations: 0.5444 MB / 436.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.2493, allocations: 8.031 kB / 436.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.516e-05/0.2494, allocations: 74.66 kB / 436.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.123e-05/0.2495, allocations: 36.75 kB / 436.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003965/0.2499, allocations: 214.5 kB / 436.6 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003085/0.2502, allocations: 347.9 kB / 437 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.877e-05/0.2502, allocations: 32.31 kB / 437 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.2515, allocations: 0.5481 MB / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.2515, allocations: 0 / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.232e-05/0.2515, allocations: 19.98 kB / 437.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.2515, allocations: 8 kB / 437.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.2529, allocations: 0.5152 MB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.2545, allocations: 0.8906 MB / 439 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.2559, allocations: 474.5 kB / 439.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006377/0.2566, allocations: 243 kB / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.678e-05/0.2566, allocations: 7.984 kB / 439.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.2567, allocations: 42.5 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.743e-06/0.2567, allocations: 3.938 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04004/0.2967, allocations: 5.744 MB / 445.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.2968, allocations: 148.9 kB / 445.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002362/0.2971, allocations: 199.2 kB / 445.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.51e-05/0.2971, allocations: 45.7 kB / 445.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.2972, allocations: 137.8 kB / 446 MB, free: 7.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.2975, allocations: 206.3 kB / 446.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002999/0.2978, allocations: 110.7 kB / 446.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.2979, allocations: 342.8 kB / 446.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001555/0.2995, allocations: 0.6266 MB / 447.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001669/0.3011, allocations: 0.8003 MB / 448.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002938/0.3041, allocations: 1.256 MB / 449.3 MB, free: 3.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.3041, allocations: 4 kB / 449.3 MB, free: 3.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003457/0.3075, allocations: 1.407 MB / 450.7 MB, free: 2.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3076, allocations: 8 kB / 450.7 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.3076, allocations: 8 kB / 450.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.824e-05/0.3076, allocations: 11.94 kB / 450.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.3089, allocations: 207.6 kB / 451 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.817e-05/0.309, allocations: 15.92 kB / 451 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009846/0.3099, allocations: 107.8 kB / 451.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.773e-05/0.31, allocations: 27.98 kB / 451.1 MB, free: 2.059 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000314/0.3103, allocations: 177.7 kB / 451.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003118/0.3107, allocations: 157.7 kB / 451.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.3108, allocations: 67.47 kB / 451.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.3108, allocations: 15.92 kB / 451.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.3108, allocations: 8.094 kB / 451.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3108, allocations: 7.922 kB / 451.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004745/0.3156, allocations: 1.956 MB / 453.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.3156, allocations: 15.94 kB / 453.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007541/0.3164, allocations: 179.7 kB / 453.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.619e-05/0.3164, allocations: 16.47 kB / 453.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.178e-05/0.3164, allocations: 27.98 kB / 453.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-05/0.3164, allocations: 19.94 kB / 453.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.808e-05/0.3165, allocations: 19.88 kB / 453.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003199/0.3197, allocations: 1.569 MB / 455.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.3199, allocations: 95.67 kB / 455.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.109e-05/0.3199, allocations: 24 kB / 455.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005916/0.3205, allocations: 79.97 kB / 455.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.3207, allocations: 99.64 kB / 455.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.285e-05/0.3208, allocations: 32 kB / 455.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001416/0.3209, allocations: 152.3 kB / 455.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3209, allocations: 0 / 455.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006663/0.3216, allocations: 124 kB / 455.9 MB, free: 12.9 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003602/0.3252, allocations: 2.145 MB / 458.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002792/0.328, allocations: 1.041 MB / 459.1 MB, free: 9.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/0.328, allocations: 0 / 459.1 MB, free: 9.551 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.329, allocations: 343.3 kB / 459.4 MB, free: 9.219 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00092/0.3299, allocations: 136.2 kB / 459.6 MB, free: 9.086 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01303/0.343, allocations: 6.838 MB / 466.4 MB, free: 1.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.3432, allocations: 207.3 kB / 466.6 MB, free: 1.523 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004828/0.3437, allocations: 95.31 kB / 466.7 MB, free: 1.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003733/0.3441, allocations: 115.4 kB / 466.8 MB, free: 1.32 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3441, allocations: 4 kB / 466.8 MB, free: 1.316 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04264/0.3867, allocations: 12.77 MB / 479.6 MB, free: 4.738 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.07, allocations: 5.562 kB / 479.6 MB, free: 4.738 MB / 382.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.6604419950163]