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.001842/0.001842, allocations: 70.03 kB / 21.24 MB, free: 0.5547 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.002025/0.002025, allocations: 153.6 kB / 24.49 MB, free: 3.852 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.391/1.391, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 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 0.001525/0.001525, allocations: 47.56 kB / 319.4 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09341/0.09494, allocations: 52.16 MB / 371.5 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004424/0.09936, allocations: 2.27 MB / 373.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.1012, allocations: 0.76 MB / 374.6 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001635/0.1014, allocations: 7.938 kB / 374.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002819/0.1017, allocations: 51.56 kB / 374.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.1019, allocations: 59.56 kB / 374.7 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000578/0.1024, allocations: 187.3 kB / 374.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004436/0.1029, allocations: 383.6 kB / 375.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.1031, allocations: 76.27 kB / 375.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.1034, allocations: 159.5 kB / 375.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003362/0.1037, allocations: 163.2 kB / 375.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.986e-05/0.1038, allocations: 36 kB / 375.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.798e-05/0.1039, allocations: 32 kB / 375.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.104, allocations: 107.7 kB / 375.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001615/0.1042, allocations: 127.4 kB / 375.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004946/0.1047, allocations: 342.6 kB / 376.3 MB, free: 2.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1047, allocations: 0 / 376.3 MB, free: 2.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1047, allocations: 0 / 376.3 MB, free: 2.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1047, allocations: 0 / 376.3 MB, free: 2.629 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.001336/0.106, allocations: 0.556 MB / 376.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.1061, allocations: 12.03 kB / 376.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.469e-05/0.1061, allocations: 36.75 kB / 376.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004365/0.1066, allocations: 226.4 kB / 377.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003451/0.1069, allocations: 355.9 kB / 377.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.138e-05/0.107, allocations: 28.36 kB / 377.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.1084, allocations: 0.5701 MB / 378 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.1085, allocations: 3.953 kB / 378 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.1085, allocations: 12 kB / 378.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1085, allocations: 4 kB / 378.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.11, allocations: 0.5113 MB / 378.6 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.1116, allocations: 0.8369 MB / 379.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001561/0.1132, allocations: 482.4 kB / 379.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006903/0.1139, allocations: 243.4 kB / 380.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.512e-05/0.1139, allocations: 8.344 kB / 380.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.114, allocations: 38.56 kB / 380.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.903e-06/0.114, allocations: 0 / 380.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03915/0.1531, allocations: 5.753 MB / 385.9 MB, free: 8.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.1532, allocations: 149 kB / 386.1 MB, free: 8.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002354/0.1535, allocations: 208.3 kB / 386.3 MB, free: 8.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.034e-05/0.1535, allocations: 33.7 kB / 386.3 MB, free: 8.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.1536, allocations: 149.7 kB / 386.4 MB, free: 8.125 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.1539, allocations: 202.3 kB / 386.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002871/0.1541, allocations: 114.6 kB / 386.8 MB, free: 7.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1543, allocations: 350.7 kB / 387.1 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/0.156, allocations: 0.6149 MB / 387.7 MB, free: 6.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/0.1578, allocations: 0.8042 MB / 388.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003365/0.1612, allocations: 1.26 MB / 389.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.1612, allocations: 4 kB / 389.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003814/0.165, allocations: 1.403 MB / 391.2 MB, free: 3.207 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.165, allocations: 18.67 kB / 391.2 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.1651, allocations: 4 kB / 391.2 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.1651, allocations: 8 kB / 391.2 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.1665, allocations: 211.6 kB / 391.4 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.733e-05/0.1665, allocations: 8 kB / 391.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009736/0.1675, allocations: 115.7 kB / 391.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.691e-05/0.1675, allocations: 28 kB / 391.6 MB, free: 2.824 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: 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 (84): * Single equations (assignments): 84 * 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.0003305/0.1679, allocations: 181.6 kB / 391.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003099/0.1682, allocations: 153.4 kB / 391.9 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/0.1684, allocations: 71.23 kB / 392 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-06/0.1684, allocations: 8 kB / 392 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.1684, allocations: 480 / 392 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.1684, allocations: 11.92 kB / 392 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005198/0.1736, allocations: 1.918 MB / 393.9 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/0.1736, allocations: 12 kB / 393.9 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007849/0.1744, allocations: 183.7 kB / 394.1 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-05/0.1744, allocations: 16 kB / 394.1 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.128e-05/0.1745, allocations: 24 kB / 394.1 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.151e-05/0.1745, allocations: 23.88 kB / 394.2 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-05/0.1745, allocations: 19.92 kB / 394.2 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003594/0.1781, allocations: 1.566 MB / 395.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.1783, allocations: 91.64 kB / 395.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.326e-05/0.1784, allocations: 27.98 kB / 395.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006189/0.179, allocations: 83.92 kB / 395.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.1792, allocations: 99.64 kB / 396 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.361e-05/0.1793, allocations: 35.98 kB / 396.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000156/0.1794, allocations: 145.2 kB / 396.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1794, allocations: 0 / 396.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007034/0.1801, allocations: 124 kB / 396.3 MB, free: 13.73 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: 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.0001849/0.1803, allocations: 131 kB / 396.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003018/0.1833, allocations: 1.039 MB / 397.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.1833, allocations: 0 / 397.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.1844, allocations: 342 kB / 397.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009158/0.1854, allocations: 128.5 kB / 398 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.188, allocations: 1.194 MB / 399.2 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.1882, allocations: 207.3 kB / 399.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004828/0.1887, allocations: 95.3 kB / 399.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.189, allocations: 40.48 kB / 399.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.189, allocations: 4 kB / 399.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of Templates: time 0.01564/0.2046, allocations: 8.921 MB / 408.4 MB, free: 1.527 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 -s ida -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 4.633281997055747]