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.001285/0.001285, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 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.001334/0.001334, allocations: 167.9 kB / 24.5 MB, free: 3.453 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.434/1.434, allocations: 177.2 MB / 204.9 MB, free: 9.02 MB / 190.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.001564/0.001564, allocations: 51.91 kB / 325.6 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09591/0.09747, allocations: 53.34 MB / 378.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003917/0.1014, allocations: 2.271 MB / 381.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.1029, allocations: 0.8027 MB / 382 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.1031, allocations: 7.938 kB / 382 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.1034, allocations: 59.56 kB / 382 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/0.1035, allocations: 55.56 kB / 382.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.104, allocations: 175.6 kB / 382.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004164/0.1044, allocations: 383.6 kB / 382.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.1046, allocations: 80.2 kB / 382.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002883/0.1049, allocations: 163.5 kB / 382.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002443/0.1051, allocations: 167.2 kB / 383 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.022e-05/0.1052, allocations: 36 kB / 383.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.704e-05/0.1053, allocations: 36 kB / 383.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.1054, allocations: 103.7 kB / 383.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.1055, allocations: 131.4 kB / 383.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.106, allocations: 342.6 kB / 383.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.106, allocations: 0 / 383.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.106, allocations: 0 / 383.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.106, allocations: 0 / 383.7 MB, free: 10.86 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.001257/0.1072, allocations: 0.5522 MB / 384.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.1073, allocations: 8.031 kB / 384.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.297e-05/0.1073, allocations: 44.7 kB / 384.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.1077, allocations: 219.1 kB / 384.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003546/0.1081, allocations: 351.9 kB / 384.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.732e-05/0.1082, allocations: 28.38 kB / 384.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.1095, allocations: 0.57 MB / 385.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.1095, allocations: 0 / 385.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.1095, allocations: 16 kB / 385.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1095, allocations: 8 kB / 385.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/0.1111, allocations: 0.5113 MB / 386 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.1126, allocations: 0.8407 MB / 386.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.1142, allocations: 478.3 kB / 387.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007077/0.1149, allocations: 247.4 kB / 387.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.877e-05/0.1149, allocations: 15.92 kB / 387.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.115, allocations: 42.56 kB / 387.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.844e-06/0.115, allocations: 0 / 387.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04034/0.1553, allocations: 5.738 MB / 393.3 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.1554, allocations: 145.1 kB / 393.4 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002413/0.1557, allocations: 208.7 kB / 393.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.593e-05/0.1557, allocations: 37.7 kB / 393.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.1559, allocations: 141.8 kB / 393.8 MB, free: 376 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000204/0.1561, allocations: 206.3 kB / 394 MB, free: 168 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002825/0.1563, allocations: 118.6 kB / 394.1 MB, free: 44 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.1565, allocations: 342.8 kB / 394.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001776/0.1583, allocations: 0.6227 MB / 395.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001907/0.1602, allocations: 0.812 MB / 395.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003474/0.1637, allocations: 1.26 MB / 397.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1637, allocations: 0 / 397.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00388/0.1676, allocations: 1.407 MB / 398.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1676, allocations: 8.406 kB / 398.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.1676, allocations: 15.98 kB / 398.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.1676, allocations: 8 kB / 398.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/0.169, allocations: 203.7 kB / 398.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.63e-05/0.169, allocations: 15.92 kB / 398.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.17, allocations: 111.7 kB / 398.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.88e-05/0.1701, allocations: 27.98 kB / 399 MB, free: 11.05 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: 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.0003235/0.1705, allocations: 181.6 kB / 399.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003165/0.1708, allocations: 153.4 kB / 399.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001484/0.1709, allocations: 55.31 kB / 399.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.1709, allocations: 8 kB / 399.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.1709, allocations: 4 kB / 399.4 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.1709, allocations: 7.922 kB / 399.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00503/0.176, allocations: 1.922 MB / 401.3 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.176, allocations: 8 kB / 401.3 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007772/0.1768, allocations: 183.7 kB / 401.5 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.501e-05/0.1768, allocations: 12 kB / 401.5 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.273e-05/0.1768, allocations: 27.98 kB / 401.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.897e-05/0.1769, allocations: 19.88 kB / 401.5 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/0.1769, allocations: 20.06 kB / 401.5 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003575/0.1804, allocations: 1.582 MB / 403.1 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.1806, allocations: 91.67 kB / 403.2 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.951e-05/0.1807, allocations: 24 kB / 403.2 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006261/0.1813, allocations: 79.91 kB / 403.3 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.1815, allocations: 103.6 kB / 403.4 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-05/0.1816, allocations: 28 kB / 403.4 MB, free: 6.234 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001541/0.1817, allocations: 153.2 kB / 403.6 MB, free: 6.086 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1817, allocations: 0 / 403.6 MB, free: 6.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006694/0.1824, allocations: 120 kB / 403.7 MB, free: 5.969 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.0001681/0.1826, allocations: 139.2 kB / 403.8 MB, free: 5.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003018/0.1856, allocations: 1.035 MB / 404.9 MB, free: 4.781 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.1856, allocations: 4 kB / 404.9 MB, free: 4.777 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.1867, allocations: 342 kB / 405.2 MB, free: 4.445 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008954/0.1876, allocations: 123.9 kB / 405.3 MB, free: 4.324 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.1901, allocations: 1.193 MB / 406.5 MB, free: 2.965 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.1904, allocations: 207.3 kB / 406.7 MB, free: 2.746 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004597/0.1908, allocations: 95.3 kB / 406.8 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/0.1911, allocations: 40.97 kB / 406.9 MB, free: 2.609 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1911, allocations: 0 / 406.9 MB, free: 2.609 MB / 366.1 MB Notification: Performance of Templates: time 0.01549/0.2066, allocations: 8.932 MB / 415.8 MB, free: 9.762 MB / 382.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/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: 4.592710614902899]