Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001602/0.001602, allocations: 115.1 kB / 18.45 MB, free: 4.605 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.001834/0.001834, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.585/1.585, allocations: 230.6 MB / 254.8 MB, free: 15.1 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: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 47.92 kB / 374.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1501, allocations: 53.33 MB / 427.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.005699/0.1558, allocations: 2.177 MB / 429.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002167/0.158, allocations: 0.6861 MB / 430.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002509/0.1582, allocations: 7.938 kB / 430.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003752/0.1586, allocations: 47.64 kB / 430.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002339/0.1588, allocations: 43.62 kB / 430.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005824/0.1594, allocations: 131.8 kB / 430.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005841/0.16, allocations: 335.2 kB / 430.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.1602, allocations: 52.36 kB / 430.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003959/0.1606, allocations: 155.5 kB / 431.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003294/0.1609, allocations: 159.4 kB / 431.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.954e-05/0.161, allocations: 28 kB / 431.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.778e-05/0.1611, allocations: 28 kB / 431.3 MB, free: 484 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.1612, allocations: 87.73 kB / 431.4 MB, free: 396 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.1614, allocations: 119.4 kB / 431.5 MB, free: 276 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2772/0.4386, allocations: 284.8 kB / 431.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.183e-05/0.4386, allocations: 0.9375 kB / 431.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4386, allocations: 0 / 431.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.423e-05/0.4387, allocations: 3.062 kB / 431.8 MB, free: 8.738 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001666/0.4403, allocations: 0.5831 MB / 432.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/0.4404, allocations: 9.938 kB / 432.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.4405, allocations: 32.09 kB / 432.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005903/0.4411, allocations: 251.2 kB / 432.6 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002509/0.4414, allocations: 134 kB / 432.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.663e-05/0.4415, allocations: 27.41 kB / 432.8 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.4425, allocations: 368 kB / 433.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.4425, allocations: 5.734 kB / 433.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.699e-05/0.4426, allocations: 9.719 kB / 433.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.4426, allocations: 4.75 kB / 433.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.4441, allocations: 0.4897 MB / 433.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.4457, allocations: 1.004 MB / 434.7 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.447, allocations: 319.4 kB / 435 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005249/0.4475, allocations: 162.4 kB / 435.1 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.973e-05/0.4476, allocations: 4.328 kB / 435.1 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.4476, allocations: 36.95 kB / 435.2 MB, free: 7.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.765e-06/0.4476, allocations: 0 / 435.2 MB, free: 7.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.03021/0.4778, allocations: 5.798 MB / 441 MB, free: 6.617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.4779, allocations: 61.62 kB / 441 MB, free: 6.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.4782, allocations: 208.9 kB / 441.2 MB, free: 6.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.545e-05/0.4782, allocations: 31.98 kB / 441.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.955e-05/0.4783, allocations: 155.2 kB / 441.4 MB, free: 6.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.4785, allocations: 182 kB / 441.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002626/0.4788, allocations: 88.41 kB / 441.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.744e-05/0.4789, allocations: 339.3 kB / 442 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.4803, allocations: 471.4 kB / 442.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.4817, allocations: 0.5169 MB / 443 MB, free: 5.348 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002648/0.4844, allocations: 0.8022 MB / 443.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.4844, allocations: 1.5 kB / 443.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003166/0.4875, allocations: 0.9846 MB / 444.8 MB, free: 4.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.4876, allocations: 5.125 kB / 444.8 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.4876, allocations: 5.766 kB / 444.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.232e-05/0.4876, allocations: 3.312 kB / 444.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.4887, allocations: 173.8 kB / 445 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-05/0.4887, allocations: 3.75 kB / 445 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007853/0.4895, allocations: 84.62 kB / 445.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.35e-05/0.4895, allocations: 16.66 kB / 445.1 MB, free: 4.656 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002749/0.4898, allocations: 160.2 kB / 445.2 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.4899, allocations: 33.27 kB / 445.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001351/0.4901, allocations: 53.41 kB / 445.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/0.4901, allocations: 6.141 kB / 445.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/0.4901, allocations: 2.5 kB / 445.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.4901, allocations: 3.578 kB / 445.3 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004572/0.4947, allocations: 1.88 MB / 447.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.468e-05/0.4947, allocations: 11.91 kB / 447.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007303/0.4954, allocations: 143.3 kB / 447.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.662e-05/0.4954, allocations: 11.78 kB / 447.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.4955, allocations: 24.62 kB / 447.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.331e-05/0.4955, allocations: 16.23 kB / 447.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/0.4955, allocations: 13 kB / 447.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002934/0.4984, allocations: 1.226 MB / 448.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.4987, allocations: 148.2 kB / 448.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.212e-05/0.4987, allocations: 22.59 kB / 448.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005536/0.4993, allocations: 75.94 kB / 448.9 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/0.4995, allocations: 87.53 kB / 449 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.987e-05/0.4996, allocations: 23.62 kB / 449 MB, free: 2.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.4997, allocations: 141 kB / 449.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4997, allocations: 1.812 kB / 449.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006054/0.5003, allocations: 96.16 kB / 449.2 MB, free: 2.469 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001844/0.5005, allocations: 125.9 kB / 449.4 MB, free: 2.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002474/0.503, allocations: 0.7845 MB / 450.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/0.503, allocations: 1.125 kB / 450.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.504, allocations: 319.1 kB / 450.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000662/0.5047, allocations: 61.89 kB / 450.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.507, allocations: 1.053 MB / 451.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.5073, allocations: 0.784 MB / 452.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002978/0.5076, allocations: 34.95 kB / 452.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5076, allocations: 0 / 452.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of Templates: time 0.01244/0.5201, allocations: 5.614 MB / 458 MB, free: 13.72 MB / 366.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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: 8.330972545983968]