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.001129/0.001129, allocations: 186.5 kB / 17.27 MB, free: 4.48 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.365/1.365, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 124.7 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008324/0.0008326, allocations: 43.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3005, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003551/0.3042, allocations: 2.198 MB / 401.7 MB, free: 31.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.3052, allocations: 0.6316 MB / 402.3 MB, free: 30.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.3054, allocations: 7.938 kB / 402.3 MB, free: 30.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002852/0.3057, allocations: 39.77 kB / 402.3 MB, free: 30.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.3058, allocations: 39.75 kB / 402.4 MB, free: 30.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.3062, allocations: 107.9 kB / 402.5 MB, free: 30.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002891/0.3064, allocations: 327.2 kB / 402.8 MB, free: 30.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.3066, allocations: 64.17 kB / 402.9 MB, free: 29.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.3068, allocations: 139.5 kB / 403 MB, free: 29.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001804/0.307, allocations: 147.4 kB / 403.1 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.464e-05/0.307, allocations: 16 kB / 403.2 MB, free: 29.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.881e-05/0.3071, allocations: 20 kB / 403.2 MB, free: 29.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.315e-05/0.3072, allocations: 71.78 kB / 403.3 MB, free: 29.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.45e-05/0.3073, allocations: 119.4 kB / 403.4 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.3075, allocations: 264.6 kB / 403.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.3075, allocations: 4 kB / 403.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.3075, allocations: 0 / 403.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.3075, allocations: 0 / 403.6 MB, free: 29.2 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.001074/0.3086, allocations: 0.5728 MB / 404.2 MB, free: 28.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3087, allocations: 12.03 kB / 404.2 MB, free: 28.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.274e-05/0.3087, allocations: 32.66 kB / 404.2 MB, free: 28.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.309, allocations: 252.4 kB / 404.5 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.3092, allocations: 134.2 kB / 404.6 MB, free: 28.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/0.3093, allocations: 23.94 kB / 404.6 MB, free: 28.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007664/0.31, allocations: 371.6 kB / 405 MB, free: 27.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.3101, allocations: 0 / 405 MB, free: 27.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.916e-05/0.3101, allocations: 4 kB / 405 MB, free: 27.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.3101, allocations: 8 kB / 405 MB, free: 27.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.3113, allocations: 0.4901 MB / 405.5 MB, free: 27.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001488/0.3128, allocations: 1.015 MB / 406.5 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.314, allocations: 339.8 kB / 406.9 MB, free: 25.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006459/0.3146, allocations: 182.8 kB / 407 MB, free: 25.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.615e-05/0.3147, allocations: 4.234 kB / 407 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.3147, allocations: 34.8 kB / 407.1 MB, free: 25.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.924e-06/0.3147, allocations: 0 / 407.1 MB, free: 25.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02535/0.3401, allocations: 5.781 MB / 412.9 MB, free: 19.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.3402, allocations: 55.84 kB / 412.9 MB, free: 19.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.3404, allocations: 214.7 kB / 413.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.943e-05/0.3405, allocations: 33.7 kB / 413.2 MB, free: 19.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.647e-05/0.3405, allocations: 148.7 kB / 413.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.3407, allocations: 173.4 kB / 413.5 MB, free: 19.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.3409, allocations: 94.16 kB / 413.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.633e-05/0.3409, allocations: 334.8 kB / 413.9 MB, free: 18.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.3422, allocations: 468.8 kB / 414.3 MB, free: 18.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.3433, allocations: 0.5216 MB / 414.9 MB, free: 17.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002089/0.3454, allocations: 0.7993 MB / 415.7 MB, free: 16.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3455, allocations: 0 / 415.7 MB, free: 16.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002465/0.3479, allocations: 0.9867 MB / 416.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.348, allocations: 7.938 kB / 416.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.348, allocations: 11.88 kB / 416.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.348, allocations: 4 kB / 416.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009107/0.3489, allocations: 167.8 kB / 416.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.3489, allocations: 32 / 416.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006323/0.3496, allocations: 91.83 kB / 416.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.121e-05/0.3496, allocations: 16 kB / 416.9 MB, free: 15.5 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.000219/0.3499, allocations: 161.7 kB / 417.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.58e-05/0.35, allocations: 27.66 kB / 417.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001265/0.3501, allocations: 47.31 kB / 417.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.3501, allocations: 15.98 kB / 417.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.475e-06/0.3501, allocations: 0 / 417.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3501, allocations: 0 / 417.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003553/0.3537, allocations: 1.87 MB / 419.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.3537, allocations: 8 kB / 419.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005934/0.3543, allocations: 152.5 kB / 419.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.788e-06/0.3543, allocations: 15.94 kB / 419.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.3544, allocations: 20 kB / 419.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.017e-06/0.3544, allocations: 11.98 kB / 419.3 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/0.3544, allocations: 15.94 kB / 419.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008488/0.3629, allocations: 3.94 MB / 423.2 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.3631, allocations: 144.8 kB / 423.4 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.298e-05/0.3632, allocations: 23.94 kB / 423.4 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000482/0.3636, allocations: 75.84 kB / 423.5 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.3638, allocations: 79.8 kB / 423.5 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/0.3639, allocations: 20 kB / 423.6 MB, free: 8.441 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001528/0.364, allocations: 147.2 kB / 423.7 MB, free: 8.297 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.364, allocations: 0 / 423.7 MB, free: 8.297 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005751/0.3646, allocations: 115.9 kB / 423.8 MB, free: 8.184 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.0001592/0.3648, allocations: 131 kB / 423.9 MB, free: 8.043 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.3669, allocations: 0.8492 MB / 424.8 MB, free: 7.191 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3669, allocations: 0 / 424.8 MB, free: 7.191 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008667/0.3678, allocations: 325.8 kB / 425.1 MB, free: 6.875 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000573/0.3684, allocations: 59.97 kB / 425.2 MB, free: 6.816 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.3705, allocations: 1.453 MB / 426.6 MB, free: 5.223 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002135/0.3707, allocations: 0.7999 MB / 427.4 MB, free: 4.395 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004674/0.3712, allocations: 79.23 kB / 427.5 MB, free: 4.316 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002133/0.3714, allocations: 35.38 kB / 427.5 MB, free: 4.281 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3714, allocations: 0 / 427.5 MB, free: 4.281 MB / 298.7 MB Notification: Performance of Templates: time 0.008595/0.38, allocations: 5.936 MB / 433.5 MB, free: 14.37 MB / 314.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@2/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