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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009327/0.0009327, allocations: 74.3 kB / 22.21 MB, free: 2.301 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009637/0.0009637, allocations: 145.4 kB / 25.59 MB, free: 8.945 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.023/1.023, allocations: 173.4 MB / 202.3 MB, free: 8.281 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.354e-06/2.354e-06, allocations: 0 / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.736e-05/3.972e-05, allocations: 2.312 kB / 269.2 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004108/0.004148, allocations: 2.13 MB / 271.3 MB, free: 7.66 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.005545, allocations: 0.6476 MB / 271.9 MB, free: 7.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.00571, allocations: 4 kB / 272 MB, free: 7.008 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003348/0.006045, allocations: 43.64 kB / 272 MB, free: 6.965 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.0062, allocations: 52.55 kB / 272 MB, free: 6.914 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000397/0.006597, allocations: 129.6 kB / 272.2 MB, free: 6.789 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003859/0.006982, allocations: 355.1 kB / 272.5 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.007157, allocations: 53.47 kB / 272.6 MB, free: 6.387 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002659/0.007423, allocations: 199.6 kB / 272.8 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.007598, allocations: 130 kB / 272.9 MB, free: 6.066 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.05e-05/0.007638, allocations: 32 kB / 272.9 MB, free: 6.035 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.397e-05/0.007672, allocations: 32 kB / 273 MB, free: 6.004 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.58e-05/0.007748, allocations: 83.77 kB / 273 MB, free: 5.922 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.877e-05/0.007827, allocations: 99.7 kB / 273.1 MB, free: 5.824 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.008077, allocations: 215.3 kB / 273.3 MB, free: 5.613 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.008081, allocations: 0 / 273.3 MB, free: 5.613 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.008082, allocations: 0.8438 kB / 273.3 MB, free: 5.613 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.008087, allocations: 0 / 273.3 MB, free: 5.613 MB / 250.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.0007278/0.008815, allocations: 0.6081 MB / 274 MB, free: 4.973 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.008855, allocations: 9.375 kB / 274 MB, free: 4.965 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.366e-05/0.008939, allocations: 56.78 kB / 274 MB, free: 4.91 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.009173, allocations: 182.9 kB / 274.2 MB, free: 4.707 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/0.009393, allocations: 344.3 kB / 274.5 MB, free: 4.305 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.766e-05/0.009441, allocations: 24.86 kB / 274.6 MB, free: 4.281 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003811/0.009822, allocations: 261.3 kB / 274.8 MB, free: 4.012 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.009837, allocations: 4 kB / 274.8 MB, free: 4.008 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.009859, allocations: 8 kB / 274.8 MB, free: 4 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.009866, allocations: 8 kB / 274.8 MB, free: 3.992 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/0.01017, allocations: 181.2 kB / 275 MB, free: 3.812 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.01124, allocations: 0.8398 MB / 275.9 MB, free: 2.934 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.01156, allocations: 174.9 kB / 276 MB, free: 2.75 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.834e-05/0.01165, allocations: 64.16 kB / 276.1 MB, free: 2.684 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.997e-05/0.01168, allocations: 4 kB / 276.1 MB, free: 2.68 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.01171, allocations: 41.38 kB / 276.1 MB, free: 2.629 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 2.104e-06/0.01171, allocations: 0 / 276.1 MB, free: 2.629 MB / 250.7 MB Notification: Performance of matching and sorting (n=53): time 0.005468/0.01718, allocations: 2.696 MB / 278.8 MB, free: 15.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.01721, allocations: 55.91 kB / 278.9 MB, free: 15.81 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.01734, allocations: 237.8 kB / 279.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.878e-05/0.01738, allocations: 37.7 kB / 279.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.657e-05/0.01746, allocations: 195.6 kB / 279.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.01757, allocations: 194.4 kB / 279.5 MB, free: 15.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.01771, allocations: 91.95 kB / 279.6 MB, free: 15.03 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.01783, allocations: 0.5156 MB / 280.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.01804, allocations: 157.2 kB / 280.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.01826, allocations: 241.3 kB / 280.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003712/0.01864, allocations: 340.3 kB / 280.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.01864, allocations: 0 / 280.9 MB, free: 13.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005914/0.01923, allocations: 489.2 kB / 281.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.01925, allocations: 6.031 kB / 281.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.01925, allocations: 4 kB / 281.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.01927, allocations: 8.125 kB / 281.4 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004794/0.01975, allocations: 151.8 kB / 281.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.01975, allocations: 4 kB / 281.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002873/0.02004, allocations: 63.92 kB / 281.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.296e-05/0.02007, allocations: 12 kB / 281.6 MB, free: 13.02 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.0001512/0.02023, allocations: 196.3 kB / 281.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.836e-05/0.0203, allocations: 47.81 kB / 281.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.569e-05/0.02036, allocations: 51.31 kB / 281.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.02036, allocations: 7.938 kB / 281.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.02037, allocations: 0 / 281.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.02037, allocations: 3.984 kB / 281.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.0219, allocations: 1.26 MB / 283.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.02191, allocations: 12 kB / 283.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003021/0.02221, allocations: 127.8 kB / 283.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.936e-06/0.02222, allocations: 12.62 kB / 283.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.02224, allocations: 20 kB / 283.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.686e-06/0.02225, allocations: 19.94 kB / 283.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.02226, allocations: 11.94 kB / 283.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007244/0.02298, allocations: 0.829 MB / 284.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.02309, allocations: 71.73 kB / 284.2 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.86e-05/0.02313, allocations: 28 kB / 284.3 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.02335, allocations: 51.94 kB / 284.3 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.02348, allocations: 83.64 kB / 284.4 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-05/0.0235, allocations: 16 kB / 284.4 MB, free: 9.816 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.964e-05/0.02358, allocations: 168.7 kB / 284.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02358, allocations: 0 / 284.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003294/0.02391, allocations: 96 kB / 284.7 MB, free: 9.559 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.0001203/0.02403, allocations: 130.3 kB / 284.8 MB, free: 9.426 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004669/0.0245, allocations: 382.8 kB / 285.2 MB, free: 9.047 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.0245, allocations: 0 / 285.2 MB, free: 9.047 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.02468, allocations: 156 kB / 285.3 MB, free: 8.895 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004058/0.02509, allocations: 83.89 kB / 285.4 MB, free: 8.812 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.02635, allocations: 0.966 MB / 286.4 MB, free: 7.668 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.79e-05/0.02642, allocations: 109.6 kB / 286.5 MB, free: 7.543 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000238/0.02666, allocations: 66.91 kB / 286.5 MB, free: 7.48 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002403/0.0269, allocations: 118.2 kB / 286.7 MB, free: 7.363 MB / 266.7 MB Notification: Performance of SimCode: time 1.543e-06/0.0269, allocations: 0 / 286.7 MB, free: 7.363 MB / 266.7 MB Notification: Performance of Templates: time 0.008099/0.035, allocations: 6.792 MB / 293.5 MB, free: 0.6523 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] 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","",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.8824088373221457]