Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 72.53 kB / 21.24 MB, free: 412 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 159.7 kB / 24.49 MB, free: 3.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 173.4 MB / 201.1 MB, free: 12.57 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 47.86 kB / 319.4 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.091/0.09256, allocations: 52.15 MB / 371.5 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003831/0.0964, allocations: 2.239 MB / 373.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001514/0.09791, allocations: 0.7366 MB / 374.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.09804, allocations: 7.938 kB / 374.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002659/0.09831, allocations: 55.61 kB / 374.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001946/0.0985, allocations: 63.52 kB / 374.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004668/0.09897, allocations: 167.5 kB / 374.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004398/0.09941, allocations: 375.6 kB / 375.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.09957, allocations: 67.75 kB / 375.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/0.0998, allocations: 155.5 kB / 375.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.1, allocations: 163.3 kB / 375.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.1001, allocations: 32 kB / 375.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.431e-05/0.1002, allocations: 40 kB / 375.6 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.1003, allocations: 99.72 kB / 375.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000142/0.1004, allocations: 123.4 kB / 375.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004016/0.1008, allocations: 322.8 kB / 376.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.1008, allocations: 4 kB / 376.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1008, allocations: 0 / 376.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.1008, allocations: 0 / 376.2 MB, free: 2.746 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.1021, allocations: 0.5521 MB / 376.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.1021, allocations: 12.03 kB / 376.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.886e-05/0.1022, allocations: 36.75 kB / 376.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004001/0.1026, allocations: 218.6 kB / 377 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003322/0.1029, allocations: 343.9 kB / 377.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.417e-05/0.103, allocations: 36.31 kB / 377.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.1043, allocations: 0.5535 MB / 377.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.1043, allocations: 3.938 kB / 377.9 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.1043, allocations: 12 kB / 377.9 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1043, allocations: 8 kB / 377.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.1059, allocations: 0.5191 MB / 378.4 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.1074, allocations: 0.8405 MB / 379.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.109, allocations: 478.5 kB / 379.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006991/0.1097, allocations: 239.4 kB / 380 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.271e-05/0.1097, allocations: 8 kB / 380 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.1097, allocations: 42.55 kB / 380 MB, free: 14.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.744e-06/0.1097, allocations: 0 / 380 MB, free: 14.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04018/0.1499, allocations: 5.738 MB / 385.8 MB, free: 8.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.15, allocations: 149 kB / 385.9 MB, free: 8.688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.1503, allocations: 210.6 kB / 386.1 MB, free: 8.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.292e-05/0.1503, allocations: 37.7 kB / 386.2 MB, free: 8.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.1505, allocations: 145.8 kB / 386.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/0.1507, allocations: 198.3 kB / 386.5 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002837/0.1509, allocations: 114.6 kB / 386.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.1511, allocations: 342.8 kB / 386.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001765/0.1529, allocations: 0.6266 MB / 387.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001893/0.1548, allocations: 0.8003 MB / 388.4 MB, free: 6.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003304/0.1581, allocations: 1.256 MB / 389.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.1581, allocations: 8 kB / 389.6 MB, free: 4.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003755/0.1618, allocations: 1.407 MB / 391 MB, free: 3.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.1619, allocations: 8 kB / 391 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.1619, allocations: 4 kB / 391.1 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.947e-05/0.1619, allocations: 8 kB / 391.1 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/0.1633, allocations: 211.6 kB / 391.3 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.055e-05/0.1633, allocations: 19.81 kB / 391.3 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009794/0.1643, allocations: 107.8 kB / 391.4 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.23e-05/0.1644, allocations: 28 kB / 391.4 MB, free: 2.984 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.0003108/0.1647, allocations: 177.6 kB / 391.6 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003024/0.165, allocations: 153.4 kB / 391.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/0.1651, allocations: 63.3 kB / 391.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.1651, allocations: 8 kB / 391.8 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.1651, allocations: 3.938 kB / 391.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.1652, allocations: 7.984 kB / 391.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004876/0.17, allocations: 1.919 MB / 393.7 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.1701, allocations: 12 kB / 393.8 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007591/0.1708, allocations: 183.7 kB / 393.9 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.828e-05/0.1708, allocations: 12 kB / 393.9 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.806e-05/0.1709, allocations: 27.94 kB / 394 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.972e-05/0.1709, allocations: 24.2 kB / 394 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.166e-05/0.1709, allocations: 19.94 kB / 394 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003464/0.1744, allocations: 1.566 MB / 395.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001999/0.1746, allocations: 87.64 kB / 395.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.034e-05/0.1746, allocations: 35.92 kB / 395.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006267/0.1753, allocations: 75.98 kB / 395.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002013/0.1755, allocations: 99.88 kB / 395.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.589e-05/0.1755, allocations: 35.98 kB / 395.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001468/0.1757, allocations: 144.8 kB / 396.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1757, allocations: 0 / 396.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006748/0.1763, allocations: 124 kB / 396.2 MB, free: 13.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.0001685/0.1765, allocations: 138.9 kB / 396.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002897/0.1794, allocations: 1.046 MB / 397.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1794, allocations: 448 / 397.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001068/0.1805, allocations: 349.8 kB / 397.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008437/0.1813, allocations: 124.1 kB / 397.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.1837, allocations: 1.186 MB / 399 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.1839, allocations: 207.3 kB / 399.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00045/0.1844, allocations: 95.3 kB / 399.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002669/0.1847, allocations: 36.5 kB / 399.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1847, allocations: 0 / 399.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of Templates: time 0.01484/0.1995, allocations: 8.865 MB / 408.2 MB, free: 1.75 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.782385486993007]