Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.0009502/0.0009502, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009009/0.0009009, allocations: 141.8 kB / 24.89 MB, free: 8.777 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.9568/0.9568, allocations: 173.4 MB / 201.5 MB, free: 8.773 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 268.5 MB, free: 6.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.49e-05/2.636e-05, allocations: 6.109 kB / 268.5 MB, free: 6.004 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00298/0.003006, allocations: 2.182 MB / 270.7 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009849/0.003991, allocations: 0.6624 MB / 271.3 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.0041, allocations: 7.938 kB / 271.3 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002495/0.00435, allocations: 39.7 kB / 271.4 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.004477, allocations: 59.5 kB / 271.4 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.004773, allocations: 127.7 kB / 271.6 MB, free: 2.902 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.005068, allocations: 351.1 kB / 271.9 MB, free: 2.559 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.005191, allocations: 46.53 kB / 272 MB, free: 2.512 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002303/0.005421, allocations: 203.5 kB / 272.2 MB, free: 2.312 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.005578, allocations: 123.7 kB / 272.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.256e-05/0.00562, allocations: 32 kB / 272.3 MB, free: 2.16 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.012e-05/0.00565, allocations: 28 kB / 272.3 MB, free: 2.133 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.519e-05/0.005726, allocations: 95.7 kB / 272.4 MB, free: 2.039 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.753e-05/0.005793, allocations: 87.78 kB / 272.5 MB, free: 1.953 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002585/0.006052, allocations: 223.2 kB / 272.7 MB, free: 1.734 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.006055, allocations: 0 / 272.7 MB, free: 1.734 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.006056, allocations: 4 kB / 272.7 MB, free: 1.73 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.006063, allocations: 0 / 272.7 MB, free: 1.73 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0006704/0.006733, allocations: 487.8 kB / 273.2 MB, free: 1.23 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.006769, allocations: 8.031 kB / 273.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.065e-05/0.00685, allocations: 52.89 kB / 273.3 MB, free: 1.172 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.007041, allocations: 162 kB / 273.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001734/0.007214, allocations: 335.8 kB / 273.8 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.652e-05/0.007251, allocations: 28.36 kB / 273.8 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.007568, allocations: 258.4 kB / 274 MB, free: 304 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.007582, allocations: 7.984 kB / 274 MB, free: 296 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.0076, allocations: 4 kB / 274 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.007609, allocations: 15.98 kB / 274.1 MB, free: 276 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002513/0.007861, allocations: 156.2 kB / 274.2 MB, free: 116 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008461/0.008707, allocations: 0.6162 MB / 274.8 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/0.009015, allocations: 204 kB / 275 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.978e-05/0.009095, allocations: 48.84 kB / 275.1 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.009123, allocations: 12 kB / 275.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.009147, allocations: 34.56 kB / 275.1 MB, free: 15.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.853e-06/0.009149, allocations: 0 / 275.1 MB, free: 15.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.007053/0.0162, allocations: 3.335 MB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.01623, allocations: 59.91 kB / 278.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.01636, allocations: 182.5 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.3e-05/0.01639, allocations: 37.7 kB / 278.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.06e-05/0.01645, allocations: 148.9 kB / 278.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.933e-05/0.01655, allocations: 182.4 kB / 279.1 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.01668, allocations: 94.27 kB / 279.1 MB, free: 11.03 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.582e-05/0.01677, allocations: 346.7 kB / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001757/0.01694, allocations: 136 kB / 279.6 MB, free: 10.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.01714, allocations: 195.2 kB / 279.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.01753, allocations: 331.6 kB / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.01753, allocations: 0 / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004757/0.018, allocations: 393.2 kB / 280.5 MB, free: 9.609 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.01802, allocations: 6.969 kB / 280.5 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.01803, allocations: 0 / 280.5 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.01805, allocations: 4 kB / 280.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.01853, allocations: 159.8 kB / 280.7 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.01853, allocations: 12.06 kB / 280.7 MB, free: 9.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/0.01878, allocations: 67.86 kB / 280.8 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.03e-05/0.01881, allocations: 15.98 kB / 280.8 MB, free: 9.352 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001312/0.01894, allocations: 140.5 kB / 280.9 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.665e-05/0.01901, allocations: 35.98 kB / 281 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.112e-05/0.01906, allocations: 51.28 kB / 281 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.01907, allocations: 8 kB / 281 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.01907, allocations: 0 / 281 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.01907, allocations: 3.984 kB / 281 MB, free: 9.109 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/0.02037, allocations: 1.035 MB / 282 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.02038, allocations: 8 kB / 282.1 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003029/0.02068, allocations: 135.8 kB / 282.2 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-06/0.02069, allocations: 12 kB / 282.2 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/0.02072, allocations: 19.98 kB / 282.2 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.046e-05/0.02073, allocations: 19.92 kB / 282.2 MB, free: 7.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.513e-06/0.02073, allocations: 11.94 kB / 282.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005723/0.0213, allocations: 0.6777 MB / 282.9 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.465e-05/0.02139, allocations: 43.8 kB / 283 MB, free: 6.891 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.488e-05/0.02142, allocations: 19.98 kB / 283 MB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.02163, allocations: 63.94 kB / 283.1 MB, free: 6.809 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.02174, allocations: 79.66 kB / 283.1 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.02176, allocations: 20 kB / 283.2 MB, free: 6.711 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.614e-05/0.02181, allocations: 53.84 kB / 283.2 MB, free: 6.656 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02181, allocations: 0 / 283.2 MB, free: 6.656 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002929/0.0221, allocations: 96 kB / 283.3 MB, free: 6.562 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001172/0.02222, allocations: 112.2 kB / 283.4 MB, free: 6.445 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004099/0.02263, allocations: 340.2 kB / 283.7 MB, free: 6.109 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.02263, allocations: 4 kB / 283.7 MB, free: 6.105 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.02279, allocations: 147.8 kB / 283.9 MB, free: 5.961 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.02314, allocations: 84.02 kB / 284 MB, free: 5.879 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.02432, allocations: 0.8645 MB / 284.8 MB, free: 4.871 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.14e-05/0.0244, allocations: 105.7 kB / 284.9 MB, free: 4.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.02461, allocations: 67.2 kB / 285 MB, free: 4.688 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.02484, allocations: 111.3 kB / 285.1 MB, free: 4.578 MB / 266.7 MB Notification: Performance of SimCode: time 1.021e-06/0.02485, allocations: 0 / 285.1 MB, free: 4.578 MB / 266.7 MB Notification: Performance of Templates: time 0.09868/0.1235, allocations: 6.609 MB / 291.7 MB, free: 30.29 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.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.5713552231900394]