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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009807/0.0009808, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.268/1.268, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008186/0.0008186, allocations: 85.8 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.175e-05/2.185e-05, allocations: 4 kB / 343.8 MB, free: 4.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09262, allocations: 50.42 MB / 394.2 MB, free: 1.879 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2882/0.3809, allocations: 79.35 MB / 473.6 MB, free: 8.223 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.3811, allocations: 71.8 kB / 473.7 MB, free: 8.156 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0167/0.3978, allocations: 5.619 MB / 479.3 MB, free: 2.543 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3979, allocations: 0 / 479.3 MB, free: 2.543 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.3979, allocations: 4 kB / 479.3 MB, free: 2.539 MB / 346.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.0008792/0.3988, allocations: 0.5414 MB / 479.8 MB, free: 1.953 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.3988, allocations: 8.031 kB / 479.8 MB, free: 1.945 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.957e-05/0.3989, allocations: 35.7 kB / 479.9 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.3992, allocations: 246.2 kB / 480.1 MB, free: 1.629 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.3994, allocations: 137.6 kB / 480.2 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.56e-05/0.3994, allocations: 24 kB / 480.3 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004762/0.3999, allocations: 311.7 kB / 480.6 MB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.3999, allocations: 3.984 kB / 480.6 MB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.4, allocations: 11.95 kB / 480.6 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.4, allocations: 8 kB / 480.6 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000612/0.4006, allocations: 394.1 kB / 481 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.4022, allocations: 1.023 MB / 482 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005908/0.4028, allocations: 268.2 kB / 482.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.403, allocations: 129.3 kB / 482.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.573e-05/0.4031, allocations: 7.969 kB / 482.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.4031, allocations: 38.56 kB / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.913e-06/0.4031, allocations: 0 / 482.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.007519/0.4106, allocations: 3.086 MB / 485.5 MB, free: 12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.4107, allocations: 59.84 kB / 485.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.4109, allocations: 197.3 kB / 485.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.144e-05/0.411, allocations: 33.7 kB / 485.8 MB, free: 11.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.644e-05/0.4111, allocations: 148.7 kB / 485.9 MB, free: 11.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.4112, allocations: 173.5 kB / 486.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.34e-05/0.4113, allocations: 12 kB / 486.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4114, allocations: 338.8 kB / 486.5 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.4119, allocations: 325.1 kB / 486.8 MB, free: 10.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005257/0.4124, allocations: 394.4 kB / 487.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004111/0.4129, allocations: 263.2 kB / 487.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.4129, allocations: 0 / 487.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001122/0.414, allocations: 0.7135 MB / 488.1 MB, free: 9.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.414, allocations: 4.125 kB / 488.1 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.414, allocations: 8 kB / 488.1 MB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.4141, allocations: 11.89 kB / 488.2 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.4151, allocations: 183.8 kB / 488.3 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.4151, allocations: 4 kB / 488.3 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007033/0.4158, allocations: 107.9 kB / 488.4 MB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.664e-05/0.4159, allocations: 16 kB / 488.5 MB, free: 8.992 MB / 362.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.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001799/0.4161, allocations: 132.8 kB / 488.6 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.313e-05/0.4162, allocations: 27.72 kB / 488.6 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001399/0.4163, allocations: 51.08 kB / 488.7 MB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.4163, allocations: 11.95 kB / 488.7 MB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.4164, allocations: 0 / 488.7 MB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4164, allocations: 4 kB / 488.7 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003108/0.4195, allocations: 1.723 MB / 490.4 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.4195, allocations: 8 kB / 490.4 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006751/0.4202, allocations: 172.5 kB / 490.6 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.809e-05/0.4202, allocations: 12 kB / 490.6 MB, free: 6.691 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.186e-05/0.4203, allocations: 20 kB / 490.6 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-05/0.4203, allocations: 15.92 kB / 490.6 MB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.754e-06/0.4203, allocations: 12 kB / 490.6 MB, free: 6.645 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.4217, allocations: 1.332 MB / 492 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.4219, allocations: 152.7 kB / 492.1 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.093e-05/0.4219, allocations: 23.98 kB / 492.1 MB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005649/0.4225, allocations: 87.92 kB / 492.2 MB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.4227, allocations: 95.72 kB / 492.3 MB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.983e-05/0.4228, allocations: 24 kB / 492.3 MB, free: 4.574 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000129/0.4229, allocations: 148.3 kB / 492.5 MB, free: 4.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4229, allocations: 3.938 kB / 492.5 MB, free: 4.426 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004698/0.4234, allocations: 104 kB / 492.6 MB, free: 4.324 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001898/0.4236, allocations: 131 kB / 492.7 MB, free: 4.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009314/0.4245, allocations: 0.6037 MB / 493.3 MB, free: 3.582 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.4245, allocations: 0 / 493.3 MB, free: 3.582 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003866/0.4249, allocations: 231.9 kB / 493.6 MB, free: 3.355 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.4253, allocations: 50.06 kB / 493.6 MB, free: 3.309 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.4269, allocations: 0.8478 MB / 494.5 MB, free: 2.328 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.4272, allocations: 0.7887 MB / 495.2 MB, free: 1.512 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004688/0.4277, allocations: 78.94 kB / 495.3 MB, free: 1.438 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.4279, allocations: 27.44 kB / 495.3 MB, free: 1.41 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4279, allocations: 0 / 495.3 MB, free: 1.41 MB / 362.7 MB Notification: Performance of Templates: time 0.008113/0.436, allocations: 5.093 MB / 0.4887 GB, free: 12.34 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches