Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001334, allocations: 78.33 kB / 21.24 MB, free: 0.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001486/0.001486, allocations: 162 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 177.1 MB / 204.7 MB, free: 8.969 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 61.77 kB / 325.5 MB, free: 196 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1049, allocations: 53.39 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004058/0.109, allocations: 2.271 MB / 381.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.1108, allocations: 0.7988 MB / 382 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.111, allocations: 7.938 kB / 382 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.1113, allocations: 59.56 kB / 382 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002276/0.1115, allocations: 59.5 kB / 382.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006415/0.1122, allocations: 183.5 kB / 382.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004988/0.1127, allocations: 379.6 kB / 382.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.1129, allocations: 72.28 kB / 382.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003071/0.1132, allocations: 175.4 kB / 382.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002341/0.1134, allocations: 163.3 kB / 383 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.992e-05/0.1135, allocations: 32 kB / 383.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.54e-05/0.1135, allocations: 36 kB / 383.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.1137, allocations: 99.72 kB / 383.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001385/0.1138, allocations: 127.4 kB / 383.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004207/0.1142, allocations: 342.6 kB / 383.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1142, allocations: 0 / 383.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1142, allocations: 0 / 383.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1142, allocations: 0 / 383.7 MB, free: 10.68 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.001295/0.1155, allocations: 0.5638 MB / 384.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.1156, allocations: 11.98 kB / 384.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.188e-05/0.1157, allocations: 44.7 kB / 384.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.1161, allocations: 206.6 kB / 384.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003448/0.1164, allocations: 355.8 kB / 384.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.538e-05/0.1165, allocations: 28.38 kB / 384.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.1177, allocations: 0.5784 MB / 385.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.1177, allocations: 0 / 385.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.1178, allocations: 12 kB / 385.5 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-06/0.1178, allocations: 8 kB / 385.5 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.1192, allocations: 0.5074 MB / 386 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001477/0.1207, allocations: 0.8601 MB / 386.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.1222, allocations: 474.4 kB / 387.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006583/0.1228, allocations: 245.5 kB / 387.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.493e-05/0.1229, allocations: 8 kB / 387.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.1229, allocations: 42.5 kB / 387.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.705e-06/0.1229, allocations: 0 / 387.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03813/0.1611, allocations: 5.729 MB / 393.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001599/0.1612, allocations: 156.9 kB / 393.5 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/0.1615, allocations: 204.6 kB / 393.7 MB, free: 384 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.944e-05/0.1616, allocations: 37.7 kB / 393.7 MB, free: 340 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.1617, allocations: 141.8 kB / 393.8 MB, free: 192 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.1619, allocations: 206.3 kB / 394 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/0.1622, allocations: 114.7 kB / 394.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.1624, allocations: 350.7 kB / 394.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001663/0.1641, allocations: 0.6188 MB / 395.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/0.1659, allocations: 0.8042 MB / 395.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003197/0.1691, allocations: 1.26 MB / 397.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.096e-05/0.1691, allocations: 4 kB / 397.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003745/0.1728, allocations: 1.407 MB / 398.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.1729, allocations: 8.031 kB / 398.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.1729, allocations: 19.92 kB / 398.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.76e-05/0.1729, allocations: 8 kB / 398.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.1742, allocations: 203.7 kB / 398.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.454e-05/0.1743, allocations: 11.94 kB / 398.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.1753, allocations: 115.7 kB / 398.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-05/0.1754, allocations: 24 kB / 399 MB, free: 10.88 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.0003487/0.1757, allocations: 185.6 kB / 399.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003379/0.1761, allocations: 149.4 kB / 399.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.1762, allocations: 67.3 kB / 399.4 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.1762, allocations: 8 kB / 399.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.1762, allocations: 0 / 399.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.1763, allocations: 7.922 kB / 399.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004946/0.1812, allocations: 1.915 MB / 401.3 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.127e-05/0.1812, allocations: 12 kB / 401.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007868/0.182, allocations: 179.7 kB / 401.5 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.116e-05/0.182, allocations: 12 kB / 401.5 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-05/0.1821, allocations: 35.92 kB / 401.5 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.976e-05/0.1821, allocations: 19.88 kB / 401.5 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/0.1821, allocations: 15.94 kB / 401.6 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003543/0.1857, allocations: 1.574 MB / 403.1 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002534/0.1859, allocations: 91.67 kB / 403.2 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.184e-05/0.186, allocations: 27.98 kB / 403.3 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006325/0.1867, allocations: 79.92 kB / 403.3 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.1869, allocations: 99.64 kB / 403.4 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.304e-05/0.1869, allocations: 32 kB / 403.5 MB, free: 6.059 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001735/0.1871, allocations: 153.1 kB / 403.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1871, allocations: 0 / 403.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007268/0.1878, allocations: 124 kB / 403.7 MB, free: 5.789 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.0001869/0.188, allocations: 127.1 kB / 403.9 MB, free: 5.652 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002998/0.191, allocations: 1.039 MB / 404.9 MB, free: 4.613 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/0.191, allocations: 4 kB / 404.9 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.1921, allocations: 342 kB / 405.2 MB, free: 4.277 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009519/0.1931, allocations: 133.1 kB / 405.4 MB, free: 4.148 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.1957, allocations: 1.189 MB / 406.5 MB, free: 2.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.1959, allocations: 207.3 kB / 406.8 MB, free: 2.574 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005049/0.1965, allocations: 99.28 kB / 406.8 MB, free: 2.473 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002985/0.1968, allocations: 44.44 kB / 406.9 MB, free: 2.43 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.1968, allocations: 3.938 kB / 406.9 MB, free: 2.426 MB / 366.1 MB Notification: Performance of Templates: time 0.01611/0.2129, allocations: 8.923 MB / 415.8 MB, free: 9.574 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.749906625947915]