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.001425/0.001425, allocations: 123.4 kB / 18.46 MB, free: 4.598 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.001676/0.001676, allocations: 192.3 kB / 21.4 MB, free: 1.668 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.429/1.429, allocations: 225.6 MB / 249.8 MB, free: 3.734 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.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 0.001494/0.001494, allocations: 51.91 kB / 366.8 MB, free: 372 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1025, allocations: 52.14 MB / 418.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003938/0.1065, allocations: 2.359 MB / 421.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.108, allocations: 0.8066 MB / 422.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.1082, allocations: 4 kB / 422.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002955/0.1085, allocations: 59.5 kB / 422.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.1087, allocations: 59.55 kB / 422.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005077/0.1092, allocations: 179.6 kB / 422.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000424/0.1096, allocations: 391.5 kB / 422.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.1098, allocations: 75.84 kB / 422.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002529/0.11, allocations: 163.5 kB / 423 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002685/0.1103, allocations: 179.2 kB / 423.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.417e-05/0.1104, allocations: 39.98 kB / 423.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.761e-05/0.1104, allocations: 32 kB / 423.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.1106, allocations: 95.72 kB / 423.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.1107, allocations: 143.2 kB / 423.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004286/0.1111, allocations: 338.6 kB / 423.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1112, allocations: 8 kB / 423.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1112, allocations: 0 / 423.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1112, allocations: 0 / 423.8 MB, free: 7.207 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.001279/0.1124, allocations: 0.6314 MB / 424.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1125, allocations: 11.89 kB / 424.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.66e-05/0.1126, allocations: 36.75 kB / 424.5 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004459/0.113, allocations: 288.9 kB / 424.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002184/0.1132, allocations: 138.3 kB / 424.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.328e-05/0.1133, allocations: 36.3 kB / 425 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.1146, allocations: 0.5545 MB / 425.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.1146, allocations: 7.953 kB / 425.5 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.748e-05/0.1146, allocations: 8 kB / 425.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.1146, allocations: 8 kB / 425.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.1161, allocations: 0.5165 MB / 426.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.1176, allocations: 0.9947 MB / 427 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.1193, allocations: 484.7 kB / 427.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006373/0.1199, allocations: 235.4 kB / 427.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.49e-05/0.12, allocations: 7.938 kB / 427.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.12, allocations: 42.56 kB / 427.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.124e-06/0.12, allocations: 0 / 427.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03941/0.1594, allocations: 5.737 MB / 433.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/0.1596, allocations: 141 kB / 433.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.1598, allocations: 203.4 kB / 433.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.058e-05/0.1599, allocations: 33.7 kB / 433.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.16, allocations: 157.7 kB / 434.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.1603, allocations: 194.4 kB / 434.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003127/0.1606, allocations: 106.7 kB / 434.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1607, allocations: 342.8 kB / 434.7 MB, free: 12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001639/0.1624, allocations: 0.6227 MB / 435.3 MB, free: 11.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/0.1642, allocations: 0.7963 MB / 436.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003133/0.1673, allocations: 1.251 MB / 437.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.1673, allocations: 0 / 437.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00378/0.1711, allocations: 1.398 MB / 438.8 MB, free: 7.766 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.1711, allocations: 8 kB / 438.8 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.1711, allocations: 7.984 kB / 438.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.094e-05/0.1712, allocations: 8 kB / 438.8 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.1725, allocations: 220 kB / 439 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.365e-05/0.1725, allocations: 11.98 kB / 439 MB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009473/0.1734, allocations: 95.78 kB / 439.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.394e-05/0.1735, allocations: 27.98 kB / 439.1 MB, free: 7.395 MB / 366.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.000353/0.1739, allocations: 185.5 kB / 439.3 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003641/0.1742, allocations: 161.3 kB / 439.5 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001997/0.1744, allocations: 67.3 kB / 439.5 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.1745, allocations: 11.94 kB / 439.5 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1745, allocations: 0 / 439.5 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.168e-06/0.1745, allocations: 3.984 kB / 439.6 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005041/0.1795, allocations: 2.171 MB / 441.7 MB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/0.1795, allocations: 12 kB / 441.7 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007945/0.1803, allocations: 184.6 kB / 441.9 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.831e-05/0.1803, allocations: 16 kB / 441.9 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/0.1804, allocations: 23.98 kB / 442 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.761e-05/0.1804, allocations: 19.94 kB / 442 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.284e-05/0.1804, allocations: 15.94 kB / 442 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003436/0.1839, allocations: 1.564 MB / 443.6 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002375/0.1841, allocations: 164.8 kB / 443.7 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.579e-05/0.1842, allocations: 31.98 kB / 443.7 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000608/0.1848, allocations: 71.92 kB / 443.8 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.185, allocations: 95.72 kB / 443.9 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.105e-05/0.1851, allocations: 32 kB / 443.9 MB, free: 2.215 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001629/0.1852, allocations: 145.2 kB / 444.1 MB, free: 2.074 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1852, allocations: 0 / 444.1 MB, free: 2.074 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007555/0.186, allocations: 120 kB / 444.2 MB, free: 1.957 MB / 366.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.0002019/0.1862, allocations: 146.8 kB / 444.3 MB, free: 1.801 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003011/0.1892, allocations: 1.022 MB / 445.4 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.334e-05/0.1892, allocations: 1.562 kB / 445.4 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.1903, allocations: 342.1 kB / 445.7 MB, free: 452 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.1913, allocations: 132 kB / 445.8 MB, free: 320 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2181/0.4094, allocations: 1.197 MB / 447 MB, free: 30.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002507/0.4097, allocations: 0.8171 MB / 447.8 MB, free: 30.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003638/0.41, allocations: 46.86 kB / 447.9 MB, free: 30.2 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.41, allocations: 0 / 447.9 MB, free: 30.2 MB / 366.1 MB Notification: Performance of Templates: time 0.01256/0.4226, allocations: 7.225 MB / 455.1 MB, free: 29.7 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.644645081833005]