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.001558/0.001558, allocations: 117 kB / 18.41 MB, free: 4.684 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.001748/0.001748, allocations: 190.9 kB / 21.35 MB, free: 1.75 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.567/1.567, allocations: 222.9 MB / 247 MB, free: 4.195 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.001526/0.001526, allocations: 55.86 kB / 358.6 MB, free: 8.316 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1202, allocations: 49.44 MB / 408.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004257/0.1245, allocations: 2.351 MB / 410.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.1263, allocations: 0.7988 MB / 411.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002107/0.1265, allocations: 7.938 kB / 411.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003466/0.1269, allocations: 55.56 kB / 411.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.1271, allocations: 59.56 kB / 411.4 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006004/0.1277, allocations: 179.6 kB / 411.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000482/0.1282, allocations: 375.5 kB / 411.9 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.1285, allocations: 103.8 kB / 412 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.1287, allocations: 167.4 kB / 412.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002621/0.129, allocations: 179.2 kB / 412.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.976e-05/0.1291, allocations: 32 kB / 412.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.83e-05/0.1291, allocations: 36 kB / 412.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.1293, allocations: 91.78 kB / 412.5 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.1294, allocations: 147.2 kB / 412.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000483/0.1299, allocations: 342.6 kB / 413 MB, free: 1.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1299, allocations: 0 / 413 MB, free: 1.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1299, allocations: 0 / 413 MB, free: 1.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.13, allocations: 0 / 413 MB, free: 1.922 MB / 334.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.001474/0.1314, allocations: 0.6353 MB / 413.6 MB, free: 1.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.1315, allocations: 11.89 kB / 413.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.1316, allocations: 40.75 kB / 413.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.1321, allocations: 277 kB / 413.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002406/0.1324, allocations: 138.3 kB / 414.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.495e-05/0.1325, allocations: 28.38 kB / 414.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.1338, allocations: 0.5661 MB / 414.7 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/0.1338, allocations: 7.953 kB / 414.7 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.04e-05/0.1339, allocations: 15.94 kB / 414.7 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.1339, allocations: 8 kB / 414.7 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.1354, allocations: 0.5074 MB / 415.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001791/0.1373, allocations: 0.9985 MB / 416.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.139, allocations: 0.5024 MB / 416.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007129/0.1398, allocations: 259.4 kB / 416.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.714e-05/0.1398, allocations: 12.08 kB / 417 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.1399, allocations: 42.56 kB / 417 MB, free: 13.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.424e-06/0.1399, allocations: 0 / 417 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04077/0.1807, allocations: 5.737 MB / 422.7 MB, free: 7.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/0.1809, allocations: 145 kB / 422.9 MB, free: 7.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002876/0.1812, allocations: 195.5 kB / 423.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.408e-05/0.1813, allocations: 33.7 kB / 423.1 MB, free: 7.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.1814, allocations: 149.7 kB / 423.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.1816, allocations: 198.3 kB / 423.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003181/0.182, allocations: 114.7 kB / 423.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.1821, allocations: 342.8 kB / 423.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.1839, allocations: 0.611 MB / 424.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001912/0.1858, allocations: 0.7963 MB / 425.3 MB, free: 5.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003496/0.1893, allocations: 1.255 MB / 426.6 MB, free: 3.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.1894, allocations: 11.92 kB / 426.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00406/0.1934, allocations: 1.394 MB / 428 MB, free: 2.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.1935, allocations: 8 kB / 428 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.1935, allocations: 4 kB / 428 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.976e-05/0.1936, allocations: 15.98 kB / 428 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.195, allocations: 211.6 kB / 428.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.374e-05/0.195, allocations: 8 kB / 428.2 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.1961, allocations: 99.81 kB / 428.3 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.1962, allocations: 32.36 kB / 428.3 MB, free: 2.047 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.0003954/0.1966, allocations: 181.6 kB / 428.5 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003707/0.197, allocations: 161.6 kB / 428.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002091/0.1972, allocations: 67.31 kB / 428.7 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.1972, allocations: 12 kB / 428.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.1972, allocations: 0 / 428.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.1972, allocations: 3.984 kB / 428.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2334/0.4306, allocations: 2.17 MB / 430.9 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/0.4307, allocations: 11.53 kB / 430.9 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008054/0.4315, allocations: 186.9 kB / 431.1 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.875e-05/0.4316, allocations: 15.44 kB / 431.1 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.897e-05/0.4316, allocations: 21.34 kB / 431.1 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.614e-05/0.4316, allocations: 21.52 kB / 431.2 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.348e-06/0.4316, allocations: 14.66 kB / 431.2 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003205/0.4349, allocations: 1.561 MB / 432.7 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002533/0.4351, allocations: 161.2 kB / 432.9 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.396e-05/0.4352, allocations: 30.91 kB / 432.9 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006306/0.4359, allocations: 78.7 kB / 433 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002544/0.4361, allocations: 96.17 kB / 433.1 MB, free: 22.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.331e-05/0.4362, allocations: 33.48 kB / 433.1 MB, free: 22.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001405/0.4363, allocations: 141.3 kB / 433.3 MB, free: 22.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4363, allocations: 0 / 433.3 MB, free: 22.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006592/0.437, allocations: 121 kB / 433.4 MB, free: 22.07 MB / 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.0001594/0.4372, allocations: 137.3 kB / 433.5 MB, free: 21.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003213/0.4404, allocations: 1.139 MB / 434.7 MB, free: 21.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/0.4404, allocations: 1.625 kB / 434.7 MB, free: 21.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.4417, allocations: 338.4 kB / 435 MB, free: 21.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.4428, allocations: 139 kB / 435.1 MB, free: 21.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.4453, allocations: 1.204 MB / 436.3 MB, free: 21.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.4456, allocations: 0.8127 MB / 437.1 MB, free: 20.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003617/0.446, allocations: 50.14 kB / 437.2 MB, free: 20.43 MB / 350.1 MB Notification: Performance of SimCode: time 1.312e-06/0.446, allocations: 0 / 437.2 MB, free: 20.43 MB / 350.1 MB Notification: Performance of Templates: time 0.01519/0.4612, allocations: 7.224 MB / 444.4 MB, free: 19.3 MB / 350.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: 8.241703898995183]