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.001299/0.001299, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001428/0.001428, allocations: 185.9 kB / 24.45 MB, free: 3.961 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.485/1.485, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.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.001632/0.001632, allocations: 55.91 kB / 371.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2601, allocations: 52.18 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003871/0.2639, allocations: 2.264 MB / 426.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.2654, allocations: 0.7677 MB / 426.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.2656, allocations: 7.938 kB / 426.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.2658, allocations: 47.58 kB / 426.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.266, allocations: 71.48 kB / 427 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005038/0.2665, allocations: 175.7 kB / 427.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/0.267, allocations: 379.6 kB / 427.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.2672, allocations: 75.3 kB / 427.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.2675, allocations: 167.4 kB / 427.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002401/0.2677, allocations: 163.3 kB / 427.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.57e-05/0.2678, allocations: 36 kB / 427.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.33e-05/0.2678, allocations: 36 kB / 428 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.268, allocations: 99.72 kB / 428.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.2681, allocations: 123.4 kB / 428.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004407/0.2686, allocations: 346.2 kB / 428.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2686, allocations: 0 / 428.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2686, allocations: 0 / 428.5 MB, free: 9.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.2686, allocations: 0 / 428.5 MB, free: 9.738 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.001345/0.2699, allocations: 0.5561 MB / 429.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.27, allocations: 8.031 kB / 429.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.628e-05/0.2701, allocations: 44.75 kB / 429.1 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004708/0.2705, allocations: 222.4 kB / 429.3 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003549/0.2709, allocations: 347.9 kB / 429.7 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.036e-05/0.271, allocations: 28.38 kB / 429.7 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.2723, allocations: 0.57 MB / 430.3 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.2723, allocations: 3.953 kB / 430.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.2723, allocations: 15.94 kB / 430.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.2723, allocations: 8 kB / 430.3 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.2738, allocations: 0.5152 MB / 430.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.2754, allocations: 0.8289 MB / 431.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.277, allocations: 486.4 kB / 432.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006821/0.2777, allocations: 239.4 kB / 432.4 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.319e-05/0.2777, allocations: 4.406 kB / 432.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.028e-05/0.2778, allocations: 50.48 kB / 432.4 MB, free: 5.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.244e-06/0.2778, allocations: 3.938 kB / 432.4 MB, free: 5.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.03767/0.3154, allocations: 5.745 MB / 438.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.3156, allocations: 156.9 kB / 438.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002609/0.3158, allocations: 208.3 kB / 438.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.071e-05/0.3159, allocations: 37.7 kB / 438.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.316, allocations: 141.8 kB / 438.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.3162, allocations: 198.2 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002752/0.3165, allocations: 114.6 kB / 439 MB, free: 14.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.3167, allocations: 350.7 kB / 439.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001663/0.3183, allocations: 0.6227 MB / 440 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.3202, allocations: 0.8003 MB / 440.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00323/0.3234, allocations: 1.264 MB / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.3234, allocations: 0 / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003709/0.3271, allocations: 1.403 MB / 443.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.3271, allocations: 8 kB / 443.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.3272, allocations: 8 kB / 443.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.731e-05/0.3272, allocations: 8 kB / 443.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.3285, allocations: 211.6 kB / 443.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.19e-05/0.3285, allocations: 15.97 kB / 443.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009331/0.3295, allocations: 111.7 kB / 443.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.568e-05/0.3295, allocations: 24 kB / 443.8 MB, free: 9.945 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.0003279/0.3299, allocations: 185.6 kB / 444 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003096/0.3302, allocations: 157.7 kB / 444.2 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001489/0.3303, allocations: 67.23 kB / 444.2 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.3303, allocations: 12 kB / 444.2 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.3303, allocations: 4.094 kB / 444.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.3304, allocations: 11.86 kB / 444.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004811/0.3352, allocations: 1.906 MB / 446.2 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/0.3352, allocations: 8 kB / 446.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007689/0.336, allocations: 188.3 kB / 446.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.509e-05/0.336, allocations: 16 kB / 446.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-05/0.336, allocations: 28 kB / 446.4 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.897e-05/0.336, allocations: 23.86 kB / 446.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.325e-05/0.3361, allocations: 19.88 kB / 446.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0034/0.3395, allocations: 1.562 MB / 448 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.3397, allocations: 95.62 kB / 448.1 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.522e-05/0.3398, allocations: 35.98 kB / 448.1 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006093/0.3404, allocations: 75.86 kB / 448.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.3406, allocations: 103.6 kB / 448.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.827e-05/0.3406, allocations: 28 kB / 448.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001451/0.3408, allocations: 149.2 kB / 448.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3408, allocations: 0 / 448.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006562/0.3414, allocations: 120 kB / 448.6 MB, free: 4.852 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: 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.0001706/0.3416, allocations: 142.9 kB / 448.7 MB, free: 4.699 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002981/0.3446, allocations: 1.038 MB / 449.8 MB, free: 3.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.3446, allocations: 4 kB / 449.8 MB, free: 3.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.3456, allocations: 342.4 kB / 450.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009097/0.3466, allocations: 132.3 kB / 450.2 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.3491, allocations: 1.215 MB / 451.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002527/0.3494, allocations: 215.3 kB / 451.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004647/0.3498, allocations: 47.42 kB / 451.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3498, allocations: 0 / 451.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of Templates: time 0.01169/0.3615, allocations: 7.358 MB / 459.1 MB, free: 10.2 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/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: 7.7376858168281615]