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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001042/0.001042, allocations: 110.4 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001054, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2151, allocations: 50.45 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002863/0.218, allocations: 2.203 MB / 409.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.2191, allocations: 0.6694 MB / 409.9 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.2192, allocations: 4 kB / 409.9 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002589/0.2195, allocations: 39.77 kB / 410 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001433/0.2197, allocations: 42.03 kB / 410 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003274/0.22, allocations: 118.2 kB / 410.1 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002692/0.2203, allocations: 319.2 kB / 410.4 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.2204, allocations: 72.33 kB / 410.5 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.2207, allocations: 131.5 kB / 410.6 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.2209, allocations: 147.4 kB / 410.8 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.283e-05/0.2209, allocations: 20 kB / 410.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.147e-05/0.221, allocations: 16 kB / 410.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.802e-05/0.2211, allocations: 71.78 kB / 410.9 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.547e-05/0.2212, allocations: 115.4 kB / 411 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.2214, allocations: 268.6 kB / 411.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2214, allocations: 0 / 411.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2214, allocations: 4 kB / 411.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.2214, allocations: 0 / 411.2 MB, free: 23.61 MB / 298.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.0009719/0.2224, allocations: 0.5806 MB / 411.8 MB, free: 22.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.2224, allocations: 12.81 kB / 411.8 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.272e-05/0.2225, allocations: 32.66 kB / 411.9 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.2228, allocations: 248.1 kB / 412.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.2229, allocations: 130.2 kB / 412.2 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.379e-05/0.223, allocations: 27.94 kB / 412.3 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007124/0.2237, allocations: 367.6 kB / 412.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.2237, allocations: 7.922 kB / 412.6 MB, free: 22.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.2238, allocations: 12 kB / 412.6 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.2238, allocations: 4 kB / 412.7 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.225, allocations: 489.9 kB / 413.1 MB, free: 21.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.2263, allocations: 1.007 MB / 414.1 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.2274, allocations: 341.6 kB / 414.5 MB, free: 20.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004292/0.2278, allocations: 173.2 kB / 414.6 MB, free: 20.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.999e-05/0.2279, allocations: 8.219 kB / 414.6 MB, free: 20.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.2279, allocations: 34.8 kB / 414.7 MB, free: 19.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.673e-06/0.2279, allocations: 0 / 414.7 MB, free: 19.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02463/0.2526, allocations: 5.788 MB / 420.5 MB, free: 14.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.909e-05/0.2526, allocations: 59.84 kB / 420.5 MB, free: 14.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.2529, allocations: 202.2 kB / 420.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.2529, allocations: 37.7 kB / 420.8 MB, free: 13.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.229e-05/0.253, allocations: 148.7 kB / 420.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.2531, allocations: 177.4 kB / 421.1 MB, free: 13.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001899/0.2533, allocations: 94.16 kB / 421.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.869e-05/0.2534, allocations: 334.8 kB / 421.5 MB, free: 13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.2545, allocations: 468.8 kB / 422 MB, free: 12.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/0.2557, allocations: 0.5177 MB / 422.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002058/0.2577, allocations: 0.7993 MB / 423.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.2577, allocations: 11.94 kB / 423.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002432/0.2602, allocations: 0.9866 MB / 424.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.2602, allocations: 11.94 kB / 424.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.2602, allocations: 0 / 424.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.2603, allocations: 4 kB / 424.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008945/0.2612, allocations: 171.8 kB / 424.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.2612, allocations: 4 kB / 424.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006539/0.2618, allocations: 87.88 kB / 424.5 MB, free: 9.922 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.392e-05/0.2619, allocations: 16 kB / 424.6 MB, free: 9.906 MB / 298.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: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0001921/0.2621, allocations: 159.8 kB / 424.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.784e-05/0.2622, allocations: 39.56 kB / 424.8 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.2623, allocations: 51.3 kB / 424.8 MB, free: 9.648 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2623, allocations: 4 kB / 424.8 MB, free: 9.645 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.2623, allocations: 0 / 424.8 MB, free: 9.645 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2624, allocations: 3.984 kB / 424.8 MB, free: 9.641 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003472/0.2658, allocations: 1.869 MB / 426.7 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.2659, allocations: 8 kB / 426.7 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005738/0.2664, allocations: 147.8 kB / 426.8 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.2665, allocations: 19.92 kB / 426.9 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.788e-05/0.2665, allocations: 20 kB / 426.9 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/0.2665, allocations: 15.94 kB / 426.9 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.2665, allocations: 11.94 kB / 426.9 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008106/0.2746, allocations: 3.94 MB / 430.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/0.2748, allocations: 144.7 kB / 431 MB, free: 3.035 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.2749, allocations: 23.98 kB / 431 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004796/0.2754, allocations: 71.86 kB / 431.1 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.2756, allocations: 87.72 kB / 431.2 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-05/0.2756, allocations: 20 kB / 431.2 MB, free: 2.836 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001233/0.2757, allocations: 144.3 kB / 431.3 MB, free: 2.695 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2757, allocations: 4 kB / 431.3 MB, free: 2.691 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005736/0.2763, allocations: 115.9 kB / 431.4 MB, free: 2.578 MB / 298.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001371/0.2765, allocations: 131 kB / 431.6 MB, free: 2.438 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002041/0.2785, allocations: 0.8453 MB / 432.4 MB, free: 1.598 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.2785, allocations: 4.25 kB / 432.4 MB, free: 1.594 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008278/0.2794, allocations: 329.5 kB / 432.7 MB, free: 1.273 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.2799, allocations: 59.97 kB / 432.8 MB, free: 1.215 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.2821, allocations: 1.448 MB / 434.2 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.2825, allocations: 0.7999 MB / 435 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005016/0.283, allocations: 79.25 kB / 435.1 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.2832, allocations: 31.44 kB / 435.2 MB, free: 14.69 MB / 314.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2832, allocations: 7.938 kB / 435.2 MB, free: 14.68 MB / 314.7 MB Notification: Performance of Templates: time 0.01005/0.2933, allocations: 5.916 MB / 441.1 MB, free: 8.785 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches