Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.001191/0.001191, allocations: 85.05 kB / 21.5 MB, free: 2.984 MB / 18.57 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.000927/0.000927, allocations: 147 kB / 24.89 MB, free: 8.789 MB / 18.57 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 0.9226/0.9226, allocations: 173.4 MB / 201.5 MB, free: 8.777 MB / 186.7 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.SuperSampled,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.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.695e-06/2.695e-06, allocations: 0 / 268.4 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.405e-05/4.675e-05, allocations: 6.312 kB / 268.4 MB, free: 6.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004328/0.004374, allocations: 2.32 MB / 270.8 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.005854, allocations: 0.779 MB / 271.5 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.006036, allocations: 7.938 kB / 271.6 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003601/0.006396, allocations: 43.58 kB / 271.6 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.006615, allocations: 63.5 kB / 271.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004436/0.007059, allocations: 171.5 kB / 271.8 MB, free: 2.652 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004175/0.007476, allocations: 383.5 kB / 272.2 MB, free: 2.277 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001878/0.007664, allocations: 66.48 kB / 272.3 MB, free: 2.211 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003179/0.007982, allocations: 219.5 kB / 272.5 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000229/0.008211, allocations: 139.6 kB / 272.6 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.84e-05/0.008269, allocations: 36 kB / 272.7 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.991e-05/0.008309, allocations: 32 kB / 272.7 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.00842, allocations: 107.6 kB / 272.8 MB, free: 1.688 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.931e-05/0.008509, allocations: 107.8 kB / 272.9 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.008805, allocations: 255 kB / 273.1 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.008807, allocations: 0 / 273.1 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.008809, allocations: 0 / 273.1 MB, free: 1.332 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.008815, allocations: 0 / 273.1 MB, free: 1.332 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0007524/0.009567, allocations: 0.5079 MB / 273.7 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.00961, allocations: 8.031 kB / 273.7 MB, free: 0.793 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.929e-05/0.009689, allocations: 60.89 kB / 273.7 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002537/0.009943, allocations: 185.8 kB / 273.9 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002644/0.01021, allocations: 339.9 kB / 274.2 MB, free: 132 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.086e-05/0.01026, allocations: 28.38 kB / 274.3 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005567/0.01081, allocations: 422.4 kB / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.01083, allocations: 3.938 kB / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.637e-05/0.01086, allocations: 12 kB / 274.7 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.01087, allocations: 4 kB / 274.7 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002865/0.01115, allocations: 178.6 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007791/0.01193, allocations: 0.6431 MB / 275.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004905/0.01242, allocations: 322.8 kB / 275.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.01254, allocations: 99.5 kB / 275.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.681e-05/0.01258, allocations: 12.34 kB / 275.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.01261, allocations: 42.5 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.864e-06/0.01261, allocations: 4 kB / 276 MB, free: 14.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005857/0.01847, allocations: 2.243 MB / 278.2 MB, free: 12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.987e-05/0.01855, allocations: 149.3 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.01866, allocations: 182.5 kB / 278.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.726e-05/0.01872, allocations: 37.7 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.16e-05/0.01878, allocations: 141.7 kB / 278.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.0189, allocations: 198.3 kB / 278.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001626/0.01907, allocations: 90.3 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.092e-05/0.01916, allocations: 346.7 kB / 279.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.0194, allocations: 204.1 kB / 279.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.01968, allocations: 294.7 kB / 279.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005107/0.02019, allocations: 498.9 kB / 280.3 MB, free: 9.773 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.02019, allocations: 4 kB / 280.3 MB, free: 9.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006213/0.02081, allocations: 0.5362 MB / 280.9 MB, free: 9.227 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.02083, allocations: 8 kB / 280.9 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.02084, allocations: 0 / 280.9 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.02085, allocations: 4 kB / 280.9 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005049/0.02135, allocations: 163.7 kB / 281 MB, free: 9.055 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.02136, allocations: 12.2 kB / 281 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003127/0.02167, allocations: 75.86 kB / 281.1 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.561e-05/0.02171, allocations: 12 kB / 281.1 MB, free: 8.957 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (67): * Single equations (assignments): 67 * 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.0001664/0.02187, allocations: 152.5 kB / 281.3 MB, free: 8.797 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.02204, allocations: 113.6 kB / 281.4 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.017e-05/0.02211, allocations: 63.3 kB / 281.4 MB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.02211, allocations: 12 kB / 281.5 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.02212, allocations: 0 / 281.5 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.02212, allocations: 7.984 kB / 281.5 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.02365, allocations: 1.184 MB / 282.7 MB, free: 7.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.02365, allocations: 8 kB / 282.7 MB, free: 7.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003248/0.02398, allocations: 164.7 kB / 282.8 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.034e-05/0.02399, allocations: 20 kB / 282.8 MB, free: 7.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.02402, allocations: 20 kB / 282.9 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.105e-05/0.02403, allocations: 27.86 kB / 282.9 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.02404, allocations: 15.94 kB / 282.9 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006331/0.02467, allocations: 0.8472 MB / 283.7 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.536e-05/0.02476, allocations: 51.73 kB / 283.8 MB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.16e-05/0.02481, allocations: 28 kB / 283.8 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.02504, allocations: 59.94 kB / 283.9 MB, free: 5.867 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.02515, allocations: 83.64 kB / 284 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.02518, allocations: 32 kB / 284 MB, free: 5.754 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.151e-05/0.02522, allocations: 49.84 kB / 284 MB, free: 5.703 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02522, allocations: 3.938 kB / 284.1 MB, free: 5.699 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003372/0.02556, allocations: 128 kB / 284.2 MB, free: 5.574 MB / 266.7 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.0001099/0.02567, allocations: 116.2 kB / 284.3 MB, free: 5.453 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000515/0.02618, allocations: 461.1 kB / 284.7 MB, free: 4.992 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/0.02619, allocations: 8.438 kB / 284.7 MB, free: 4.984 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.02635, allocations: 155.2 kB / 284.9 MB, free: 4.832 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000478/0.02683, allocations: 140.9 kB / 285 MB, free: 4.699 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.02801, allocations: 0.9889 MB / 286 MB, free: 3.543 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.161e-05/0.0281, allocations: 130.8 kB / 286.2 MB, free: 3.398 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002395/0.02834, allocations: 79.19 kB / 286.2 MB, free: 3.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.02863, allocations: 111.4 kB / 286.3 MB, free: 3.211 MB / 266.7 MB Notification: Performance of SimCode: time 8.31e-07/0.02863, allocations: 0 / 286.3 MB, free: 3.211 MB / 266.7 MB Notification: Performance of Templates: time 0.1042/0.1328, allocations: 9.251 MB / 295.6 MB, free: 29.17 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7987344190478325]