Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001229/0.001229, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001298/0.001298, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 18.57 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.032/1.032, allocations: 177 MB / 205.1 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 273.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.601e-05/2.747e-05, allocations: 2.312 kB / 273.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00326/0.003287, allocations: 2.155 MB / 275.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.004383, allocations: 0.6742 MB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.004502, allocations: 0 / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002651/0.004767, allocations: 47.64 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.004891, allocations: 47.62 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002974/0.005188, allocations: 131.7 kB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000273/0.005461, allocations: 347.1 kB / 276.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.005588, allocations: 52.55 kB / 276.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000282/0.00587, allocations: 211.5 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.006026, allocations: 127.6 kB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/0.006064, allocations: 28 kB / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.536e-05/0.006099, allocations: 32 kB / 277.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.939e-05/0.006168, allocations: 87.77 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.655e-05/0.006235, allocations: 95.72 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002303/0.006465, allocations: 219.3 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.006469, allocations: 0 / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.006469, allocations: 0 / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.006473, allocations: 0 / 277.5 MB, free: 13.01 MB / 266.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.0006501/0.007124, allocations: 0.601 MB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.007162, allocations: 15.98 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.953e-05/0.007231, allocations: 52.8 kB / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.007419, allocations: 188.7 kB / 278.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001791/0.007598, allocations: 343.8 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.007635, allocations: 24.38 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000312/0.007947, allocations: 261.3 kB / 279 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.00796, allocations: 11.94 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.007981, allocations: 8 kB / 279 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.007988, allocations: 8 kB / 279 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.008239, allocations: 181.2 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009285/0.009168, allocations: 0.8282 MB / 280 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.009462, allocations: 174 kB / 280.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.009571, allocations: 71.58 kB / 280.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.009606, allocations: 4 kB / 280.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.00964, allocations: 45.39 kB / 280.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.655e-06/0.009642, allocations: 0 / 280.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.005312/0.01495, allocations: 2.689 MB / 283 MB, free: 7.266 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.01499, allocations: 59.91 kB / 283.1 MB, free: 7.195 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001459/0.01513, allocations: 241.7 kB / 283.3 MB, free: 6.941 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.01517, allocations: 37.7 kB / 283.3 MB, free: 6.898 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.615e-05/0.01524, allocations: 195.7 kB / 283.5 MB, free: 6.703 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.01536, allocations: 190.3 kB / 283.7 MB, free: 6.516 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.01549, allocations: 95.95 kB / 283.8 MB, free: 6.414 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.01562, allocations: 0.5156 MB / 284.3 MB, free: 5.887 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.01583, allocations: 161.2 kB / 284.5 MB, free: 5.727 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/0.01607, allocations: 233.3 kB / 284.7 MB, free: 5.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004695/0.01653, allocations: 348.2 kB / 285 MB, free: 5.117 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.01654, allocations: 0 / 285 MB, free: 5.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005977/0.01713, allocations: 485.2 kB / 285.5 MB, free: 4.637 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.01715, allocations: 4 kB / 285.5 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.01716, allocations: 4 kB / 285.5 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.01718, allocations: 8.125 kB / 285.5 MB, free: 4.621 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004737/0.01765, allocations: 147.8 kB / 285.7 MB, free: 4.477 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.01767, allocations: 7.984 kB / 285.7 MB, free: 4.469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.01795, allocations: 63.92 kB / 285.7 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.01798, allocations: 12 kB / 285.8 MB, free: 4.395 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.0001564/0.01813, allocations: 196.4 kB / 285.9 MB, free: 4.191 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.839e-05/0.01821, allocations: 43.81 kB / 286 MB, free: 4.148 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.475e-05/0.01826, allocations: 51.31 kB / 286 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.01827, allocations: 4 kB / 286 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.01827, allocations: 0 / 286 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.01828, allocations: 7.922 kB / 286 MB, free: 4.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001553/0.01983, allocations: 1.26 MB / 287.3 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.01984, allocations: 8 kB / 287.3 MB, free: 2.641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002989/0.02014, allocations: 131.8 kB / 287.4 MB, free: 2.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.019e-05/0.02015, allocations: 16.58 kB / 287.5 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.02018, allocations: 16 kB / 287.5 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.828e-06/0.02019, allocations: 19.94 kB / 287.5 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.02019, allocations: 11.94 kB / 287.5 MB, free: 2.449 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000833/0.02102, allocations: 0.8332 MB / 288.3 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.02113, allocations: 67.78 kB / 288.4 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.397e-05/0.02116, allocations: 20 kB / 288.4 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.02138, allocations: 59.94 kB / 288.5 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.02149, allocations: 79.64 kB / 288.6 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.02152, allocations: 24 kB / 288.6 MB, free: 1.191 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.607e-05/0.02159, allocations: 156.2 kB / 288.7 MB, free: 1.039 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02159, allocations: 0 / 288.7 MB, free: 1.039 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000323/0.02191, allocations: 96 kB / 288.8 MB, free: 0.9453 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.0001289/0.02204, allocations: 127 kB / 289 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004544/0.0225, allocations: 375 kB / 289.3 MB, free: 452 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.0225, allocations: 0 / 289.3 MB, free: 452 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.02269, allocations: 154 kB / 289.5 MB, free: 296 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.0231, allocations: 90.81 kB / 289.6 MB, free: 208 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.02439, allocations: 0.9581 MB / 290.5 MB, free: 15.06 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.415e-05/0.02448, allocations: 109.6 kB / 290.6 MB, free: 14.94 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002333/0.02471, allocations: 70.89 kB / 290.7 MB, free: 14.87 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.02495, allocations: 122.2 kB / 290.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of SimCode: time 1.011e-06/0.02495, allocations: 0 / 290.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of Templates: time 0.007852/0.0328, allocations: 6.622 MB / 297.4 MB, free: 8.195 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.959223421756178]