Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001551/0.001551, allocations: 80.62 kB / 22.21 MB, free: 2.293 MB / 18.57 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.00122/0.00122, allocations: 145.2 kB / 25.59 MB, free: 8.914 MB / 18.57 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 0.9951/0.9951, allocations: 173.4 MB / 202.2 MB, free: 8.301 MB / 186.7 MB " [Timeout remaining time 179] 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.SubClocked,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.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.317e-05/2.435e-05, allocations: 2.312 kB / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002888/0.002912, allocations: 2.338 MB / 271.5 MB, free: 7.461 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.004295, allocations: 0.7867 MB / 272.3 MB, free: 6.672 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.004452, allocations: 11.94 kB / 272.3 MB, free: 6.66 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003/0.004752, allocations: 51.56 kB / 272.4 MB, free: 6.609 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.004959, allocations: 64.53 kB / 272.4 MB, free: 6.547 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004612/0.00542, allocations: 185.4 kB / 272.6 MB, free: 6.367 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003745/0.005795, allocations: 385.4 kB / 273 MB, free: 5.992 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.005957, allocations: 68.34 kB / 273 MB, free: 5.926 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002923/0.006249, allocations: 227.5 kB / 273.3 MB, free: 5.703 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.006432, allocations: 147.6 kB / 273.4 MB, free: 5.559 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.846e-05/0.00648, allocations: 32 kB / 273.4 MB, free: 5.527 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.241e-05/0.006523, allocations: 36.91 kB / 273.5 MB, free: 5.492 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.006635, allocations: 111.6 kB / 273.6 MB, free: 5.383 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.379e-05/0.006728, allocations: 100.5 kB / 273.7 MB, free: 5.285 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003975/0.007126, allocations: 263 kB / 273.9 MB, free: 5.027 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.007132, allocations: 0.6875 kB / 273.9 MB, free: 5.027 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.007133, allocations: 0 / 273.9 MB, free: 5.027 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.007142, allocations: 0.7188 kB / 273.9 MB, free: 5.027 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0008279/0.00797, allocations: 0.647 MB / 274.6 MB, free: 4.348 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.008004, allocations: 13 kB / 274.6 MB, free: 4.336 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.162e-05/0.008086, allocations: 68.75 kB / 274.7 MB, free: 4.27 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.008337, allocations: 223 kB / 274.9 MB, free: 4.027 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.008517, allocations: 339.9 kB / 275.2 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.00856, allocations: 28.38 kB / 275.2 MB, free: 3.598 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000779/0.009339, allocations: 438.7 kB / 275.7 MB, free: 3.137 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.009353, allocations: 4.141 kB / 275.7 MB, free: 3.133 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.009377, allocations: 16.12 kB / 275.7 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.009386, allocations: 8 kB / 275.7 MB, free: 3.109 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002947/0.00968, allocations: 200.2 kB / 275.9 MB, free: 2.914 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008344/0.01051, allocations: 0.8904 MB / 276.8 MB, free: 1.969 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005012/0.01102, allocations: 320.7 kB / 277.1 MB, free: 1.605 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.01115, allocations: 130.8 kB / 277.2 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-05/0.01119, allocations: 8 kB / 277.2 MB, free: 1.453 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.01121, allocations: 45.33 kB / 277.3 MB, free: 1.398 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.914e-06/0.01121, allocations: 0 / 277.3 MB, free: 1.398 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.006786/0.018, allocations: 2.403 MB / 279.7 MB, free: 14.99 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.188e-05/0.01808, allocations: 156.9 kB / 279.8 MB, free: 14.81 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.01823, allocations: 242.6 kB / 280.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.522e-05/0.0183, allocations: 33.7 kB / 280.1 MB, free: 14.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.517e-05/0.01838, allocations: 196.4 kB / 280.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.01852, allocations: 198.3 kB / 280.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.01871, allocations: 91.97 kB / 280.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.01884, allocations: 0.5157 MB / 281.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000299/0.01914, allocations: 253.2 kB / 281.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003572/0.0195, allocations: 364 kB / 281.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006292/0.02013, allocations: 0.5419 MB / 282.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.02013, allocations: 0 / 282.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009973/0.02113, allocations: 0.6612 MB / 282.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.02115, allocations: 8 kB / 282.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.02116, allocations: 224 / 282.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.02117, allocations: 11.94 kB / 282.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/0.02182, allocations: 159.8 kB / 283.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.02182, allocations: 8.297 kB / 283.1 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003871/0.02221, allocations: 71.88 kB / 283.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.611e-05/0.02226, allocations: 19.98 kB / 283.2 MB, free: 11.33 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (67): * Single equations (assignments): 67 * 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.0002105/0.02247, allocations: 196.3 kB / 283.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002408/0.02271, allocations: 149.4 kB / 283.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.538e-05/0.0228, allocations: 63.31 kB / 283.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.465e-06/0.02281, allocations: 11.98 kB / 283.6 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.02282, allocations: 0 / 283.6 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.02282, allocations: 4 kB / 283.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001873/0.0247, allocations: 1.461 MB / 285.1 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.0247, allocations: 8 kB / 285.1 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003863/0.02509, allocations: 167.7 kB / 285.2 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/0.0251, allocations: 16 kB / 285.2 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.684e-05/0.02514, allocations: 28 kB / 285.3 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.208e-05/0.02515, allocations: 19.92 kB / 285.3 MB, free: 8.992 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.697e-06/0.02516, allocations: 15.94 kB / 285.3 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008101/0.02597, allocations: 1.053 MB / 286.4 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.0261, allocations: 79.69 kB / 286.4 MB, free: 7.641 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.581e-05/0.02614, allocations: 31.98 kB / 286.5 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.02642, allocations: 55.95 kB / 286.5 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.02655, allocations: 95.67 kB / 286.6 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/0.02658, allocations: 27.98 kB / 286.6 MB, free: 7.434 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.562e-05/0.02665, allocations: 161.6 kB / 286.8 MB, free: 7.277 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02665, allocations: 0 / 286.8 MB, free: 7.277 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004133/0.02707, allocations: 120 kB / 286.9 MB, free: 7.16 MB / 266.7 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.0001429/0.02721, allocations: 142.9 kB / 287.1 MB, free: 7.008 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000648/0.02786, allocations: 0.5043 MB / 287.6 MB, free: 6.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.02786, allocations: 0 / 287.6 MB, free: 6.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001929/0.02806, allocations: 162.9 kB / 287.7 MB, free: 6.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006026/0.02866, allocations: 144 kB / 287.9 MB, free: 6.203 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.03036, allocations: 1.127 MB / 289 MB, free: 4.859 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.03048, allocations: 130.8 kB / 289.1 MB, free: 4.715 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000289/0.03077, allocations: 75.2 kB / 289.2 MB, free: 4.645 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.03109, allocations: 134.2 kB / 289.3 MB, free: 4.512 MB / 266.7 MB Notification: Performance of SimCode: time 1.543e-06/0.03109, allocations: 3.938 kB / 289.3 MB, free: 4.508 MB / 266.7 MB Notification: Performance of Templates: time 0.0111/0.04218, allocations: 9.643 MB / 299 MB, free: 10.94 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9317297618836164]