Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001409/0.001409, allocations: 116.2 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001494/0.001494, allocations: 201 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.552/1.552, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002351/0.002351, allocations: 63.88 kB / 373.8 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.125, allocations: 53.31 MB / 427.1 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004259/0.1292, allocations: 2.169 MB / 429.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.1309, allocations: 0.6821 MB / 430 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002251/0.1311, allocations: 4 kB / 430 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003464/0.1314, allocations: 55.55 kB / 430 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.1317, allocations: 47.64 kB / 430.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004766/0.1321, allocations: 131.8 kB / 430.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005211/0.1327, allocations: 339.2 kB / 430.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.1329, allocations: 48.39 kB / 430.6 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003968/0.1333, allocations: 151.5 kB / 430.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003146/0.1336, allocations: 155.4 kB / 430.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.36e-05/0.1336, allocations: 28 kB / 430.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.982e-05/0.1337, allocations: 36 kB / 430.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.1338, allocations: 87.72 kB / 431 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.134, allocations: 119.4 kB / 431.2 MB, free: 480 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004181/0.1344, allocations: 290.8 kB / 431.4 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1344, allocations: 0 / 431.4 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1344, allocations: 3.938 kB / 431.4 MB, free: 184 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.1344, allocations: 0 / 431.4 MB, free: 184 kB / 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.2875/0.4219, allocations: 0.5837 MB / 432 MB, free: 9.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.422, allocations: 8.938 kB / 432 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.4221, allocations: 32.95 kB / 432.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004667/0.4226, allocations: 247.8 kB / 432.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002416/0.4228, allocations: 136.2 kB / 432.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.95e-05/0.4229, allocations: 27.77 kB / 432.5 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.4239, allocations: 369.2 kB / 432.8 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.4239, allocations: 4.891 kB / 432.8 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.424, allocations: 12.75 kB / 432.8 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.424, allocations: 6.531 kB / 432.9 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.4255, allocations: 498.5 kB / 433.3 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.4272, allocations: 1.002 MB / 434.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.4284, allocations: 316.7 kB / 434.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004855/0.4289, allocations: 166 kB / 434.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.082e-05/0.4289, allocations: 3.734 kB / 434.8 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.429, allocations: 35.33 kB / 434.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.954e-06/0.429, allocations: 0 / 434.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02799/0.457, allocations: 5.801 MB / 440.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.457, allocations: 61.03 kB / 440.7 MB, free: 7.484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.4573, allocations: 201.9 kB / 440.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.4574, allocations: 32.39 kB / 440.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.4575, allocations: 152.9 kB / 441.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.4576, allocations: 186.4 kB / 441.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002387/0.4579, allocations: 96.66 kB / 441.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.458, allocations: 334 kB / 441.7 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001444/0.4594, allocations: 465.5 kB / 442.1 MB, free: 6.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.4608, allocations: 0.5202 MB / 442.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002488/0.4633, allocations: 0.8046 MB / 443.5 MB, free: 5.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.4633, allocations: 0 / 443.5 MB, free: 5.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003065/0.4664, allocations: 0.991 MB / 444.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.4664, allocations: 5.844 kB / 444.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.4664, allocations: 5.594 kB / 444.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.168e-05/0.4665, allocations: 4.719 kB / 444.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.4675, allocations: 165 kB / 444.6 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.4675, allocations: 7.719 kB / 444.6 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006892/0.4682, allocations: 92.17 kB / 444.7 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.815e-05/0.4683, allocations: 21.36 kB / 444.8 MB, free: 5.586 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.0002285/0.4685, allocations: 156.4 kB / 444.9 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.338e-05/0.4686, allocations: 29.81 kB / 444.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.4687, allocations: 53.86 kB / 445 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.4687, allocations: 7.969 kB / 445 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/0.4687, allocations: 4.969 kB / 445 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.4687, allocations: 2.766 kB / 445 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004143/0.4729, allocations: 1.874 MB / 446.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.4729, allocations: 8.094 kB / 446.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006564/0.4735, allocations: 143 kB / 447 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.497e-05/0.4735, allocations: 11.5 kB / 447 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.723e-05/0.4736, allocations: 29.11 kB / 447.1 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-05/0.4736, allocations: 15.45 kB / 447.1 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/0.4736, allocations: 13.61 kB / 447.1 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002725/0.4763, allocations: 1.226 MB / 448.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.4765, allocations: 148.3 kB / 448.5 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.602e-05/0.4766, allocations: 19.47 kB / 448.5 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000512/0.4771, allocations: 72.12 kB / 448.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.4773, allocations: 87.95 kB / 448.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.363e-05/0.4773, allocations: 25.69 kB / 448.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000188/0.4775, allocations: 146 kB / 448.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4775, allocations: 0 / 448.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005756/0.4781, allocations: 97.12 kB / 448.9 MB, free: 3.402 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.0001519/0.4782, allocations: 123 kB / 449 MB, free: 3.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00232/0.4806, allocations: 0.7804 MB / 449.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.4806, allocations: 9.328 kB / 449.8 MB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009644/0.4815, allocations: 318 kB / 450.1 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006572/0.4822, allocations: 59.42 kB / 450.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.4844, allocations: 1.031 MB / 451.2 MB, free: 2.191 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.4847, allocations: 0.7807 MB / 452 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004188/0.4851, allocations: 84.55 kB / 452.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.4853, allocations: 30.58 kB / 452.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4853, allocations: 0 / 452.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of Templates: time 0.01213/0.4974, allocations: 5.825 MB / 457.9 MB, free: 14.56 MB / 366.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.960749456658959]