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.001449/0.001449, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001518/0.001518, allocations: 166.2 kB / 24.99 MB, free: 8.219 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 0.9973/0.9973, allocations: 177 MB / 205.2 MB, free: 5.52 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 2.073e-06/2.073e-06, allocations: 0 / 273 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.228e-05/2.436e-05, allocations: 5.406 kB / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002428/0.002453, allocations: 2.167 MB / 275.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009516/0.003404, allocations: 0.6742 MB / 275.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.00351, allocations: 3.938 kB / 275.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.00376, allocations: 39.7 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.003883, allocations: 59.56 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.004174, allocations: 123.7 kB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003109/0.004485, allocations: 355 kB / 276.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.004625, allocations: 52.53 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002756/0.004901, allocations: 199.6 kB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.005057, allocations: 131.7 kB / 276.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.858e-05/0.005096, allocations: 32 kB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.173e-05/0.005128, allocations: 35.94 kB / 276.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.314e-05/0.005211, allocations: 83.77 kB / 276.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.454e-05/0.005285, allocations: 91.78 kB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002274/0.005513, allocations: 223.2 kB / 277.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.005515, allocations: 0 / 277.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.005515, allocations: 0 / 277.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.00552, allocations: 0 / 277.2 MB, free: 13.46 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.0007185/0.006239, allocations: 0.5933 MB / 277.8 MB, free: 12.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.006274, allocations: 15.98 kB / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.288e-05/0.006357, allocations: 60.78 kB / 277.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.006576, allocations: 192.7 kB / 278.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/0.00678, allocations: 339.8 kB / 278.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.085e-05/0.006821, allocations: 24.38 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003732/0.007194, allocations: 285.3 kB / 278.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.007208, allocations: 3.953 kB / 278.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.007231, allocations: 12 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.007239, allocations: 4 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003541/0.007594, allocations: 218.8 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.008703, allocations: 0.8783 MB / 279.8 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000365/0.009068, allocations: 178.9 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001294/0.009197, allocations: 79.64 kB / 280.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.009224, allocations: 4 kB / 280.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.009246, allocations: 37.39 kB / 280.1 MB, free: 10.35 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.009248, allocations: 0 / 280.1 MB, free: 10.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.005756/0.015, allocations: 2.845 MB / 282.9 MB, free: 7.441 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.01504, allocations: 55.91 kB / 283 MB, free: 7.375 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.01521, allocations: 253.7 kB / 283.2 MB, free: 7.109 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.821e-05/0.01525, allocations: 33.7 kB / 283.3 MB, free: 7.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.664e-05/0.01534, allocations: 195.7 kB / 283.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.01545, allocations: 182.4 kB / 283.6 MB, free: 6.695 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.01559, allocations: 96 kB / 283.7 MB, free: 6.594 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.01573, allocations: 0.5157 MB / 284.3 MB, free: 6.066 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.01603, allocations: 209.1 kB / 284.5 MB, free: 5.859 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003339/0.01636, allocations: 285.4 kB / 284.7 MB, free: 5.562 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005226/0.01688, allocations: 408.3 kB / 285.1 MB, free: 5.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.01688, allocations: 0 / 285.1 MB, free: 5.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007614/0.01765, allocations: 0.556 MB / 285.7 MB, free: 4.578 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.01766, allocations: 4 kB / 285.7 MB, free: 4.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.01767, allocations: 4 kB / 285.7 MB, free: 4.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.01769, allocations: 4 kB / 285.7 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004608/0.01815, allocations: 147.8 kB / 285.9 MB, free: 4.422 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.01816, allocations: 7.938 kB / 285.9 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002812/0.01844, allocations: 71.84 kB / 285.9 MB, free: 4.344 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.199e-05/0.01847, allocations: 16 kB / 285.9 MB, free: 4.328 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.0001451/0.01861, allocations: 184.5 kB / 286.1 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.565e-05/0.01869, allocations: 47.81 kB / 286.2 MB, free: 4.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.069e-05/0.01875, allocations: 51.3 kB / 286.2 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.01875, allocations: 4 kB / 286.2 MB, free: 4.039 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.01876, allocations: 7.938 kB / 286.2 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.01877, allocations: 0 / 286.2 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.02036, allocations: 1.321 MB / 287.6 MB, free: 2.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.02037, allocations: 8.938 kB / 287.6 MB, free: 2.512 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.02066, allocations: 131.8 kB / 287.7 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.867e-06/0.02067, allocations: 15.94 kB / 287.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.0207, allocations: 16 kB / 287.7 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.888e-06/0.02071, allocations: 19.92 kB / 287.7 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/0.02071, allocations: 11.94 kB / 287.8 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007953/0.02151, allocations: 0.8801 MB / 288.6 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.403e-05/0.0216, allocations: 63.81 kB / 288.7 MB, free: 1.207 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.346e-05/0.02165, allocations: 27.98 kB / 288.7 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.02186, allocations: 47.95 kB / 288.8 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.02199, allocations: 79.64 kB / 288.8 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.56e-05/0.02202, allocations: 24 kB / 288.9 MB, free: 1.031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.869e-05/0.02211, allocations: 172.2 kB / 289 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02211, allocations: 0 / 289 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003062/0.02241, allocations: 96 kB / 289.1 MB, free: 0.7695 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.0001232/0.02254, allocations: 131 kB / 289.3 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005967/0.02313, allocations: 429.6 kB / 289.7 MB, free: 212 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.02314, allocations: 4 kB / 289.7 MB, free: 208 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.02334, allocations: 152.9 kB / 289.8 MB, free: 52 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004174/0.02376, allocations: 85.64 kB / 289.9 MB, free: 15.97 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.02513, allocations: 0.9732 MB / 290.9 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.927e-05/0.02521, allocations: 109.7 kB / 291 MB, free: 14.69 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002383/0.02545, allocations: 74.88 kB / 291.1 MB, free: 14.62 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.02559, allocations: 28.5 kB / 291.1 MB, free: 14.59 MB / 282.7 MB Notification: Performance of SimCode: time 1.233e-06/0.02559, allocations: 4 kB / 291.1 MB, free: 14.59 MB / 282.7 MB Notification: Performance of Templates: time 0.007381/0.03298, allocations: 6.127 MB / 297.2 MB, free: 8.535 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: 3.017756799934432]