Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001548/0.001548, allocations: 115.5 kB / 18.45 MB, free: 4.602 MB / 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.00163/0.00163, allocations: 192.3 kB / 21.4 MB, free: 1.664 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.458/1.458, allocations: 225.6 MB / 249.8 MB, free: 3.613 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 55.91 kB / 366.8 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1036, allocations: 52.14 MB / 418.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003569/0.1072, allocations: 2.164 MB / 421.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1084, allocations: 0.6626 MB / 421.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.1085, allocations: 0 / 421.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002877/0.1088, allocations: 47.64 kB / 421.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.109, allocations: 47.62 kB / 421.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003999/0.1094, allocations: 127.8 kB / 422 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003832/0.1098, allocations: 339.2 kB / 422.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.1099, allocations: 48.38 kB / 422.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003/0.1102, allocations: 143.5 kB / 422.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002817/0.1105, allocations: 155.4 kB / 422.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.876e-05/0.1106, allocations: 28 kB / 422.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.414e-05/0.1106, allocations: 32 kB / 422.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.1108, allocations: 91.7 kB / 422.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.1109, allocations: 123.4 kB / 422.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003757/0.1113, allocations: 290.8 kB / 423.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1113, allocations: 0 / 423.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1113, allocations: 0 / 423.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.1113, allocations: 0 / 423.2 MB, free: 7.855 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.001195/0.1125, allocations: 0.5765 MB / 423.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.1125, allocations: 11.89 kB / 423.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.987e-05/0.1126, allocations: 36.75 kB / 423.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.113, allocations: 252.5 kB / 424.1 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000234/0.1132, allocations: 138.1 kB / 424.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.378e-05/0.1133, allocations: 35.88 kB / 424.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008677/0.1142, allocations: 363.6 kB / 424.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1142, allocations: 0 / 424.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.1142, allocations: 8 kB / 424.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.1142, allocations: 4 kB / 424.6 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.1156, allocations: 0.4901 MB / 425.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.1174, allocations: 0.9996 MB / 426.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.1186, allocations: 323 kB / 426.4 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005067/0.1191, allocations: 165.9 kB / 426.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.254e-05/0.1191, allocations: 4.234 kB / 426.6 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.1192, allocations: 38.73 kB / 426.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.174e-06/0.1192, allocations: 0 / 426.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02768/0.1468, allocations: 5.807 MB / 432.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/0.1469, allocations: 63.83 kB / 432.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.1472, allocations: 206.5 kB / 432.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.195e-05/0.1472, allocations: 33.7 kB / 432.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.1473, allocations: 153 kB / 432.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001719/0.1475, allocations: 190.4 kB / 433.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002205/0.1477, allocations: 86.27 kB / 433.1 MB, free: 13.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1479, allocations: 342.8 kB / 433.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/0.1492, allocations: 464.8 kB / 433.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/0.1506, allocations: 0.5137 MB / 434.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/0.1531, allocations: 0.8032 MB / 435.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1531, allocations: 4 kB / 435.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002871/0.1559, allocations: 0.9868 MB / 436.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.156, allocations: 11.94 kB / 436.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.156, allocations: 0 / 436.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.156, allocations: 4 kB / 436.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.157, allocations: 171.7 kB / 436.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.157, allocations: 4 kB / 436.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006953/0.1577, allocations: 87.92 kB / 436.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.92e-05/0.1578, allocations: 16 kB / 436.5 MB, free: 10.14 MB / 366.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.0002588/0.158, allocations: 161.7 kB / 436.7 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.694e-05/0.1581, allocations: 35.75 kB / 436.7 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001502/0.1583, allocations: 51.3 kB / 436.8 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.1583, allocations: 11.98 kB / 436.8 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.1583, allocations: 0 / 436.8 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1583, allocations: 0 / 436.8 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004453/0.1628, allocations: 1.87 MB / 438.6 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/0.1628, allocations: 8 kB / 438.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006648/0.1634, allocations: 144.4 kB / 438.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.986e-05/0.1635, allocations: 23.92 kB / 438.8 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.615e-05/0.1635, allocations: 16 kB / 438.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.388e-05/0.1635, allocations: 15.94 kB / 438.8 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/0.1635, allocations: 15.88 kB / 438.9 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002941/0.1665, allocations: 1.221 MB / 440.1 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.1667, allocations: 152.8 kB / 440.2 MB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.051e-05/0.1667, allocations: 16 kB / 440.2 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/0.1673, allocations: 71.92 kB / 440.3 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.1675, allocations: 91.66 kB / 440.4 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.71e-05/0.1675, allocations: 24 kB / 440.4 MB, free: 5.906 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001798/0.1677, allocations: 144.3 kB / 440.6 MB, free: 5.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1677, allocations: 7.938 kB / 440.6 MB, free: 5.758 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005002/0.1682, allocations: 92 kB / 440.7 MB, free: 5.668 MB / 366.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.0001696/0.1684, allocations: 127.1 kB / 440.8 MB, free: 5.535 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002405/0.1708, allocations: 0.7868 MB / 441.6 MB, free: 4.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.1708, allocations: 0 / 441.6 MB, free: 4.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000981/0.1717, allocations: 313.6 kB / 441.9 MB, free: 4.438 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006336/0.1724, allocations: 67.91 kB / 442 MB, free: 4.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.1748, allocations: 1.057 MB / 443 MB, free: 3.176 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.1752, allocations: 0.7801 MB / 443.8 MB, free: 2.371 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002818/0.1755, allocations: 35.44 kB / 443.8 MB, free: 2.336 MB / 366.1 MB Notification: Performance of SimCode: time 1.302e-06/0.1755, allocations: 0 / 443.8 MB, free: 2.336 MB / 366.1 MB Notification: Performance of Templates: time 0.2161/0.3916, allocations: 5.602 MB / 449.4 MB, free: 29.89 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.664441042114049]