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.001485/0.001485, allocations: 106.7 kB / 16.62 MB, free: 6.812 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.00189/0.00189, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.368/1.368, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 43.86 kB / 300.1 MB, free: 6.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09002/0.0911, allocations: 49.44 MB / 349.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003334/0.09447, allocations: 2.193 MB / 351.7 MB, free: 2.578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.09563, allocations: 0.6432 MB / 352.4 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.09581, allocations: 7.938 kB / 352.4 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002624/0.09612, allocations: 27.84 kB / 352.4 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.0963, allocations: 51.69 kB / 352.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003723/0.09668, allocations: 111.9 kB / 352.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003935/0.09709, allocations: 335.2 kB / 352.9 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.09728, allocations: 72.22 kB / 353 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002499/0.09754, allocations: 147.5 kB / 353.1 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.09778, allocations: 147.5 kB / 353.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.153e-05/0.09785, allocations: 28 kB / 353.3 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.961e-05/0.09791, allocations: 32 kB / 353.3 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.09801, allocations: 87.77 kB / 353.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.09814, allocations: 139.3 kB / 353.6 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000291/0.09844, allocations: 279.4 kB / 353.8 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.09845, allocations: 0 / 353.8 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.09846, allocations: 0 / 353.8 MB, free: 500 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.036e-06/0.09847, allocations: 4 kB / 353.8 MB, free: 496 kB / 286.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.001086/0.09956, allocations: 0.5728 MB / 354.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.0996, allocations: 11.89 kB / 354.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.488e-05/0.09968, allocations: 32.66 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002746/0.09996, allocations: 251.6 kB / 354.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001883/0.1002, allocations: 134.2 kB / 354.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.1002, allocations: 35.88 kB / 354.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008139/0.101, allocations: 363.6 kB / 355.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.1011, allocations: 7.938 kB / 355.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.183e-05/0.1011, allocations: 4 kB / 355.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.1011, allocations: 8 kB / 355.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.1024, allocations: 0.4901 MB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001716/0.1041, allocations: 1.011 MB / 356.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.1053, allocations: 343.1 kB / 357.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004675/0.1057, allocations: 173.2 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.1058, allocations: 4.234 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.1058, allocations: 34.8 kB / 357.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.794e-06/0.1058, allocations: 0 / 357.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02646/0.1323, allocations: 5.786 MB / 363.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.1324, allocations: 59.84 kB / 363.1 MB, free: 6.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.1326, allocations: 206.8 kB / 363.3 MB, free: 6.676 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.735e-05/0.1327, allocations: 29.7 kB / 363.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.818e-05/0.1328, allocations: 156.6 kB / 363.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.133, allocations: 169.5 kB / 363.7 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002136/0.1332, allocations: 90.16 kB / 363.8 MB, free: 6.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.1333, allocations: 338.8 kB / 364.1 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.1345, allocations: 472.8 kB / 364.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001248/0.1358, allocations: 0.5216 MB / 365.1 MB, free: 4.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002192/0.138, allocations: 0.8032 MB / 365.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.138, allocations: 0 / 365.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002633/0.1407, allocations: 0.9827 MB / 366.9 MB, free: 3.074 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.1407, allocations: 7.938 kB / 366.9 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.1407, allocations: 4 kB / 366.9 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.1407, allocations: 4.125 kB / 366.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009559/0.1417, allocations: 171.7 kB / 367 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.1417, allocations: 7.984 kB / 367 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006941/0.1424, allocations: 83.89 kB / 367.1 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.378e-05/0.1425, allocations: 16 kB / 367.1 MB, free: 2.785 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.0002323/0.1428, allocations: 161.7 kB / 367.3 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.841e-05/0.1429, allocations: 35.56 kB / 367.3 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.143, allocations: 47.31 kB / 367.4 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.143, allocations: 8 kB / 367.4 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.143, allocations: 0 / 367.4 MB, free: 2.523 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.143, allocations: 3.984 kB / 367.4 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00393/0.1469, allocations: 1.873 MB / 369.3 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.147, allocations: 8 kB / 369.3 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006293/0.1476, allocations: 143.8 kB / 369.4 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.224e-05/0.1476, allocations: 11.94 kB / 369.4 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.771e-05/0.1477, allocations: 24 kB / 369.5 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.277e-05/0.1477, allocations: 15.92 kB / 369.5 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/0.1477, allocations: 19.88 kB / 369.5 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1533/0.301, allocations: 1.221 MB / 370.7 MB, free: 26.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001568/0.3012, allocations: 150.2 kB / 370.9 MB, free: 26.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.625e-05/0.3013, allocations: 17.38 kB / 370.9 MB, free: 26.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005392/0.3018, allocations: 74.22 kB / 370.9 MB, free: 26.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/0.302, allocations: 88.22 kB / 371 MB, free: 26.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.967e-05/0.3021, allocations: 22.83 kB / 371.1 MB, free: 26.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001876/0.3023, allocations: 145.4 kB / 371.2 MB, free: 26.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.272e-06/0.3023, allocations: 0 / 371.2 MB, free: 26.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005035/0.3028, allocations: 100.1 kB / 371.3 MB, free: 26.27 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.0001467/0.303, allocations: 127.6 kB / 371.4 MB, free: 26.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.3053, allocations: 0.8747 MB / 372.3 MB, free: 25.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.3053, allocations: 0.9375 kB / 372.3 MB, free: 25.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009316/0.3063, allocations: 327.2 kB / 372.6 MB, free: 25.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005909/0.3069, allocations: 63.69 kB / 372.7 MB, free: 25.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.3087, allocations: 1.151 MB / 373.8 MB, free: 24.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.3089, allocations: 0.7797 MB / 374.6 MB, free: 24.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004716/0.3094, allocations: 76.27 kB / 374.7 MB, free: 24.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002056/0.3096, allocations: 30.61 kB / 374.7 MB, free: 24.23 MB / 302.1 MB Notification: Performance of SimCode: time 1.243e-06/0.3096, allocations: 0 / 374.7 MB, free: 24.23 MB / 302.1 MB Notification: Performance of Templates: time 0.008884/0.3185, allocations: 5.51 MB / 380.2 MB, free: 23.36 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