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.001929/0.001929, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.002095/0.002095, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 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.542/1.542, allocations: 177 MB / 204.5 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.623e-06/1.623e-06, allocations: 0 / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.316e-05/3.479e-05, allocations: 2.312 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004308/0.004343, allocations: 2.135 MB / 274.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.005911, allocations: 0.6626 MB / 275 MB, free: 15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001762/0.006087, allocations: 4 kB / 275 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.006427, allocations: 59.56 kB / 275 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.006641, allocations: 47.64 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000426/0.007067, allocations: 127.7 kB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005286/0.007595, allocations: 347.1 kB / 275.5 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.007772, allocations: 44.56 kB / 275.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005021/0.008274, allocations: 207.5 kB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002686/0.008542, allocations: 135.6 kB / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.374e-05/0.008616, allocations: 32 kB / 275.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.274e-05/0.008679, allocations: 32 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.008809, allocations: 87.7 kB / 276.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.008941, allocations: 91.78 kB / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000484/0.009425, allocations: 311 kB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.009428, allocations: 0 / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.00943, allocations: 0 / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.009437, allocations: 0 / 276.5 MB, free: 13.5 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.00128/0.01072, allocations: 0.6046 MB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.01076, allocations: 15.98 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.01088, allocations: 56.8 kB / 277.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.01124, allocations: 200.7 kB / 277.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000367/0.01161, allocations: 335.8 kB / 277.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.978e-05/0.01167, allocations: 20.38 kB / 277.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009161/0.01258, allocations: 348.6 kB / 278 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/0.01261, allocations: 11.95 kB / 278 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/0.01264, allocations: 8 kB / 278 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.01265, allocations: 8 kB / 278 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.01409, allocations: 433.6 kB / 278.5 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.01604, allocations: 0.9491 MB / 279.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.0171, allocations: 278.8 kB / 279.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005266/0.01763, allocations: 151.6 kB / 279.8 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.465e-05/0.01768, allocations: 4 kB / 279.8 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.01771, allocations: 41.39 kB / 279.9 MB, free: 9.863 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.363e-06/0.01771, allocations: 0 / 279.9 MB, free: 9.863 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.01682/0.03454, allocations: 4.012 MB / 283.9 MB, free: 5.785 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.03459, allocations: 55.91 kB / 283.9 MB, free: 5.719 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.03494, allocations: 261.8 kB / 284.2 MB, free: 5.445 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.999e-05/0.035, allocations: 37.7 kB / 284.2 MB, free: 5.402 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.03515, allocations: 207.7 kB / 284.4 MB, free: 5.195 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002153/0.03537, allocations: 198.4 kB / 284.6 MB, free: 5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002533/0.03562, allocations: 108 kB / 284.7 MB, free: 4.887 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003235/0.03594, allocations: 0.5235 MB / 285.3 MB, free: 4.352 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001359/0.0373, allocations: 413.1 kB / 285.7 MB, free: 3.945 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.03874, allocations: 497.2 kB / 286.2 MB, free: 3.441 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002497/0.04123, allocations: 0.7617 MB / 286.9 MB, free: 2.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.04124, allocations: 0 / 286.9 MB, free: 2.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002967/0.0442, allocations: 0.9306 MB / 287.8 MB, free: 1.727 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.04423, allocations: 4 kB / 287.9 MB, free: 1.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.04423, allocations: 3.938 kB / 287.9 MB, free: 1.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.04426, allocations: 4 kB / 287.9 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009886/0.04525, allocations: 155.8 kB / 288 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.04526, allocations: 8.125 kB / 288 MB, free: 1.555 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006824/0.04594, allocations: 71.84 kB / 288.1 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.158e-05/0.046, allocations: 16 kB / 288.1 MB, free: 1.469 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.000289/0.04629, allocations: 200.4 kB / 288.3 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.04642, allocations: 47.81 kB / 288.3 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001559/0.04658, allocations: 51.3 kB / 288.4 MB, free: 1.168 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.587e-06/0.04659, allocations: 7.984 kB / 288.4 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.0466, allocations: 0 / 288.4 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.0466, allocations: 4 kB / 288.4 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004568/0.05117, allocations: 1.802 MB / 290.2 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.05118, allocations: 8.938 kB / 290.2 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006437/0.05183, allocations: 135.8 kB / 290.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.334e-05/0.05184, allocations: 8 kB / 290.4 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.861e-05/0.05189, allocations: 16 kB / 290.4 MB, free: 15 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-05/0.05191, allocations: 15.94 kB / 290.4 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.537e-05/0.05192, allocations: 19.92 kB / 290.4 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003037/0.05496, allocations: 1.27 MB / 291.7 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.05515, allocations: 67.81 kB / 291.7 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.454e-05/0.05522, allocations: 19.98 kB / 291.8 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004879/0.05571, allocations: 55.94 kB / 291.8 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.05592, allocations: 87.66 kB / 291.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.548e-05/0.056, allocations: 27.98 kB / 291.9 MB, free: 13.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002093/0.05621, allocations: 180.2 kB / 292.1 MB, free: 13.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05621, allocations: 0 / 292.1 MB, free: 13.09 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000514/0.05672, allocations: 96 kB / 292.2 MB, free: 13 MB / 282.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.0002232/0.05694, allocations: 131 kB / 292.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002423/0.05937, allocations: 0.7371 MB / 293.1 MB, free: 12.11 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.05937, allocations: 3.938 kB / 293.1 MB, free: 12.11 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008687/0.06024, allocations: 294.5 kB / 293.4 MB, free: 11.82 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006517/0.06089, allocations: 83.88 kB / 293.4 MB, free: 11.74 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.06337, allocations: 1.048 MB / 294.5 MB, free: 10.51 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.06359, allocations: 176.2 kB / 294.7 MB, free: 10.32 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003795/0.06397, allocations: 74.88 kB / 294.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.06419, allocations: 36.5 kB / 294.8 MB, free: 10.21 MB / 282.7 MB Notification: Performance of SimCode: time 9.32e-07/0.06419, allocations: 0 / 294.8 MB, free: 10.21 MB / 282.7 MB Notification: Performance of Templates: time 0.01222/0.07641, allocations: 6.136 MB / 300.9 MB, free: 4.145 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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: 4.6410327919293195]