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) 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) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007489/0.0007492, allocations: 86.33 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008041/0.0008042, allocations: 174.7 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 223.3 MB / 241.6 MB, free: 120 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003058/0.0003058, allocations: 4 kB / 301.4 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1154, allocations: 50.42 MB / 351.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002541/0.118, allocations: 1.839 MB / 353.7 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.1191, allocations: 0.6316 MB / 354.3 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.1192, allocations: 4 kB / 354.3 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002752/0.1195, allocations: 39.77 kB / 354.3 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.1196, allocations: 39.75 kB / 354.4 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004106/0.12, allocations: 107.9 kB / 354.5 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004077/0.1205, allocations: 323.2 kB / 354.8 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.1206, allocations: 64.22 kB / 354.9 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.1208, allocations: 123.5 kB / 355 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.121, allocations: 135.5 kB / 355.1 MB, free: 412 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.993e-05/0.1211, allocations: 16 kB / 355.1 MB, free: 396 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.503e-05/0.1211, allocations: 16 kB / 355.1 MB, free: 380 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.736e-05/0.1212, allocations: 67.78 kB / 355.2 MB, free: 312 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.1213, allocations: 141.1 kB / 355.3 MB, free: 164 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002667/0.1216, allocations: 259.3 kB / 355.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1216, allocations: 0 / 355.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1216, allocations: 0 / 355.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1216, allocations: 4 kB / 355.6 MB, free: 15.9 MB / 302.1 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.001008/0.1227, allocations: 0.5495 MB / 356.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.1227, allocations: 8.031 kB / 356.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.319e-05/0.1228, allocations: 32.66 kB / 356.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.1231, allocations: 255.2 kB / 356.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000196/0.1233, allocations: 146.2 kB / 356.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.838e-05/0.1233, allocations: 27.94 kB / 356.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000836/0.1242, allocations: 375.6 kB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.1242, allocations: 0 / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.1242, allocations: 8 kB / 357 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.1243, allocations: 8 kB / 357 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.1256, allocations: 0.5096 MB / 357.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.1273, allocations: 1.035 MB / 358.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.1285, allocations: 355 kB / 358.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005123/0.129, allocations: 194.1 kB / 359.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.1291, allocations: 8.219 kB / 359.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.1291, allocations: 30.8 kB / 359.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.442e-06/0.1291, allocations: 0 / 359.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02939/0.1585, allocations: 6.672 MB / 365.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.1586, allocations: 59.84 kB / 365.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.1589, allocations: 194.9 kB / 366 MB, free: 5.156 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.573e-05/0.159, allocations: 37.7 kB / 366.1 MB, free: 5.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.1591, allocations: 160.6 kB / 366.2 MB, free: 4.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.1593, allocations: 181.4 kB / 366.4 MB, free: 4.773 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.782e-05/0.1594, allocations: 49.62 kB / 366.5 MB, free: 4.719 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.1595, allocations: 338.8 kB / 366.8 MB, free: 4.379 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.1609, allocations: 0.4891 MB / 367.3 MB, free: 3.891 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001492/0.1624, allocations: 0.5568 MB / 367.8 MB, free: 3.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002554/0.165, allocations: 0.8775 MB / 368.7 MB, free: 2.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.165, allocations: 0 / 368.7 MB, free: 2.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003013/0.168, allocations: 1.065 MB / 369.8 MB, free: 1.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.1681, allocations: 7.938 kB / 369.8 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.1681, allocations: 4 kB / 369.8 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.1681, allocations: 4 kB / 369.8 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.1691, allocations: 183.8 kB / 370 MB, free: 1.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.1691, allocations: 7.938 kB / 370 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007491/0.1699, allocations: 111.8 kB / 370.1 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.281e-05/0.17, allocations: 20 kB / 370.1 MB, free: 1.02 MB / 302.1 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.0002422/0.1702, allocations: 157.8 kB / 370.3 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.425e-05/0.1703, allocations: 31.64 kB / 370.3 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.1704, allocations: 47.31 kB / 370.3 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.1705, allocations: 4 kB / 370.3 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.477e-06/0.1705, allocations: 8 kB / 370.3 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.1705, allocations: 3.984 kB / 370.4 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2188/0.3893, allocations: 1.991 MB / 372.3 MB, free: 25.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.68e-05/0.3893, allocations: 8.594 kB / 372.3 MB, free: 25.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008186/0.3902, allocations: 163.1 kB / 372.5 MB, free: 25.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.784e-05/0.3902, allocations: 15.44 kB / 372.5 MB, free: 25.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.155e-05/0.3903, allocations: 20.7 kB / 372.5 MB, free: 25.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.099e-05/0.3903, allocations: 17.52 kB / 372.6 MB, free: 25.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.68e-05/0.3903, allocations: 16.78 kB / 372.6 MB, free: 25.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003576/0.3939, allocations: 1.332 MB / 373.9 MB, free: 24.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002597/0.3942, allocations: 146.7 kB / 374.1 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.559e-05/0.3943, allocations: 20.92 kB / 374.1 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006092/0.3949, allocations: 90.45 kB / 374.2 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002527/0.3951, allocations: 82.55 kB / 374.2 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.516e-05/0.3952, allocations: 23.61 kB / 374.3 MB, free: 24.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002447/0.3955, allocations: 149.8 kB / 374.4 MB, free: 24.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3955, allocations: 4 kB / 374.4 MB, free: 24.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006228/0.3961, allocations: 95.06 kB / 374.5 MB, free: 24.73 MB / 302.1 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.0002346/0.3964, allocations: 126.3 kB / 374.6 MB, free: 24.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003123/0.3995, allocations: 0.9244 MB / 375.6 MB, free: 24.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.3995, allocations: 5.312 kB / 375.6 MB, free: 24.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.4006, allocations: 359.8 kB / 375.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007378/0.4014, allocations: 59.94 kB / 376 MB, free: 24.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.4038, allocations: 1.198 MB / 377.2 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.4042, allocations: 0.7856 MB / 378 MB, free: 22.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005046/0.4047, allocations: 77.98 kB / 378 MB, free: 22.9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002182/0.4049, allocations: 34.92 kB / 378.1 MB, free: 22.89 MB / 302.1 MB Notification: Performance of SimCode: time 2.495e-06/0.4049, allocations: 0 / 378.1 MB, free: 22.89 MB / 302.1 MB Notification: Performance of Templates: time 0.01221/0.4171, allocations: 5.158 MB / 383.2 MB, free: 21.94 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches