Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.00167/0.00167, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002336/0.002336, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.1 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 55.92 kB / 373.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1156, allocations: 53.33 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004343/0.12, allocations: 2.366 MB / 429.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001795/0.1218, allocations: 0.8377 MB / 430 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.1219, allocations: 11.88 kB / 430 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003692/0.1223, allocations: 67.55 kB / 430.1 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002386/0.1225, allocations: 55.56 kB / 430.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.1231, allocations: 178.3 kB / 430.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004682/0.1236, allocations: 383.6 kB / 430.7 MB, free: 408 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.1238, allocations: 71.84 kB / 430.7 MB, free: 332 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003274/0.1241, allocations: 175.4 kB / 430.9 MB, free: 156 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2449/0.369, allocations: 179.5 kB / 431.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002158/0.3692, allocations: 34.03 kB / 431.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.3694, allocations: 34.44 kB / 431.2 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001714/0.3695, allocations: 95.91 kB / 431.2 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002184/0.3697, allocations: 147.2 kB / 431.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005948/0.3703, allocations: 341.9 kB / 431.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3703, allocations: 0 / 431.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3703, allocations: 0.6562 kB / 431.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.046e-06/0.3704, allocations: 0 / 431.7 MB, free: 8.301 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001312/0.3717, allocations: 0.6288 MB / 432.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.3717, allocations: 10.44 kB / 432.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.719e-05/0.3718, allocations: 42.23 kB / 432.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004422/0.3723, allocations: 270.8 kB / 432.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/0.3725, allocations: 141 kB / 432.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.535e-05/0.3725, allocations: 30.53 kB / 432.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.3738, allocations: 0.5669 MB / 433.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.3739, allocations: 2.219 kB / 433.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.107e-05/0.3739, allocations: 11 kB / 433.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.3739, allocations: 13.03 kB / 433.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001449/0.3754, allocations: 0.5051 MB / 433.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.3771, allocations: 1.012 MB / 434.9 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/0.3789, allocations: 491.1 kB / 435.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000664/0.3796, allocations: 233.9 kB / 435.7 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.837e-05/0.3796, allocations: 6.047 kB / 435.7 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.3797, allocations: 41.95 kB / 435.7 MB, free: 6.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.745e-06/0.3797, allocations: 0 / 435.7 MB, free: 6.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04248/0.4221, allocations: 5.734 MB / 441.4 MB, free: 6.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.292e-05/0.4222, allocations: 144.5 kB / 441.6 MB, free: 6.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.4225, allocations: 206 kB / 441.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.521e-05/0.4225, allocations: 35.86 kB / 441.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.249e-05/0.4226, allocations: 147.4 kB / 442 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/0.4228, allocations: 199.8 kB / 442.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003044/0.4231, allocations: 109.9 kB / 442.3 MB, free: 5.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.255e-05/0.4232, allocations: 348.2 kB / 442.6 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.425, allocations: 0.6136 MB / 443.2 MB, free: 4.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/0.4268, allocations: 0.8004 MB / 444 MB, free: 4.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00313/0.4299, allocations: 1.247 MB / 445.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.4299, allocations: 1.344 kB / 445.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003813/0.4337, allocations: 1.404 MB / 446.7 MB, free: 3.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.4337, allocations: 8.125 kB / 446.7 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.4337, allocations: 5.938 kB / 446.7 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.343e-05/0.4338, allocations: 8.531 kB / 446.7 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/0.4352, allocations: 205.7 kB / 446.9 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.876e-05/0.4352, allocations: 14.17 kB / 446.9 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.4362, allocations: 110.7 kB / 447 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.882e-05/0.4363, allocations: 27.02 kB / 447 MB, free: 3.23 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: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0003254/0.4366, allocations: 178.5 kB / 447.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002969/0.4369, allocations: 155.7 kB / 447.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001876/0.4371, allocations: 63.95 kB / 447.4 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.4371, allocations: 8.25 kB / 447.4 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.4371, allocations: 5.375 kB / 447.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.4371, allocations: 6.438 kB / 447.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004717/0.4419, allocations: 2.166 MB / 449.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.468e-05/0.4419, allocations: 9.625 kB / 449.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007641/0.4426, allocations: 182.9 kB / 449.8 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.487e-05/0.4426, allocations: 14.88 kB / 449.8 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.4427, allocations: 31.44 kB / 449.8 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-05/0.4427, allocations: 26.02 kB / 449.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.464e-05/0.4427, allocations: 19.81 kB / 449.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003076/0.4458, allocations: 1.557 MB / 451.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000175/0.446, allocations: 163 kB / 451.6 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.356e-05/0.4461, allocations: 27.77 kB / 451.6 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006056/0.4467, allocations: 72.14 kB / 451.7 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/0.4469, allocations: 99.75 kB / 451.8 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.797e-05/0.4469, allocations: 34.44 kB / 451.8 MB, free: 388 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001377/0.4471, allocations: 137.4 kB / 452 MB, free: 284 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4471, allocations: 0 / 452 MB, free: 284 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007692/0.4478, allocations: 126 kB / 452.1 MB, free: 260 kB / 350.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001596/0.448, allocations: 136.8 kB / 452.2 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003086/0.4511, allocations: 1.037 MB / 453.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/0.4511, allocations: 1.125 kB / 453.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.4522, allocations: 329.5 kB / 453.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009434/0.4531, allocations: 129.8 kB / 453.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/0.4557, allocations: 1.176 MB / 454.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005068/0.4562, allocations: 0.8062 MB / 455.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004861/0.4567, allocations: 96.72 kB / 455.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003154/0.457, allocations: 45.67 kB / 455.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.457, allocations: 0 / 455.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of Templates: time 0.01626/0.4733, allocations: 8.356 MB / 464.2 MB, free: 9.457 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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: 5.208484996110201]