Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009503/0.0009507, allocations: 193.2 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 226.6 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007662/0.0007665, allocations: 96.53 kB / 296.8 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003088/0.0003088, allocations: 8 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2713, allocations: 51.29 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.001979/0.2733, allocations: 1.798 MB / 409.8 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.2744, allocations: 0.6345 MB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.2745, allocations: 10.25 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002916/0.2748, allocations: 31.83 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.275, allocations: 43.69 kB / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002848/0.2753, allocations: 90.3 kB / 410.6 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002325/0.2755, allocations: 307 kB / 410.9 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.2757, allocations: 60.36 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.2759, allocations: 123.5 kB / 411.1 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001801/0.2761, allocations: 135.5 kB / 411.2 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.906e-05/0.2762, allocations: 16 kB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.66e-05/0.2762, allocations: 19.94 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.302e-05/0.2763, allocations: 63.78 kB / 411.3 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.301e-05/0.2764, allocations: 136.9 kB / 411.5 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001588/0.2766, allocations: 188.5 kB / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.2766, allocations: 0 / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2766, allocations: 0 / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.2766, allocations: 4 kB / 411.7 MB, free: 24.04 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.0009225/0.2775, allocations: 0.5468 MB / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.2776, allocations: 11.97 kB / 412.2 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.061e-05/0.2776, allocations: 36.66 kB / 412.3 MB, free: 23.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.2779, allocations: 251.8 kB / 412.5 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.2781, allocations: 142.2 kB / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.932e-05/0.2782, allocations: 27.94 kB / 412.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007462/0.2789, allocations: 375.5 kB / 413 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.2789, allocations: 0 / 413 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.279, allocations: 12 kB / 413.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.279, allocations: 4 kB / 413.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.2801, allocations: 0.5174 MB / 413.6 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.2816, allocations: 1.034 MB / 414.6 MB, free: 20.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.2827, allocations: 352.7 kB / 415 MB, free: 20.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004163/0.2831, allocations: 193.2 kB / 415.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-05/0.2831, allocations: 4.234 kB / 415.1 MB, free: 20.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.435e-05/0.2832, allocations: 34.8 kB / 415.2 MB, free: 20.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.843e-06/0.2832, allocations: 0 / 415.2 MB, free: 20.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02372/0.3069, allocations: 6.663 MB / 421.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.307, allocations: 55.84 kB / 421.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.3072, allocations: 206.7 kB / 422.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.895e-05/0.3072, allocations: 41.64 kB / 422.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.895e-05/0.3073, allocations: 152.6 kB / 422.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.3074, allocations: 169.5 kB / 422.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.161e-05/0.3075, allocations: 12 kB / 422.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.052e-05/0.3076, allocations: 338.8 kB / 422.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.3086, allocations: 0.4891 MB / 423.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.3098, allocations: 0.5529 MB / 423.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001955/0.3117, allocations: 0.8736 MB / 424.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3117, allocations: 0 / 424.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002314/0.3141, allocations: 1.065 MB / 425.8 MB, free: 9.559 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.3141, allocations: 7.938 kB / 425.8 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3141, allocations: 0 / 425.8 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.3141, allocations: 7.938 kB / 425.8 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009067/0.315, allocations: 187.8 kB / 426 MB, free: 9.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.3151, allocations: 7.938 kB / 426 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005941/0.3157, allocations: 103.9 kB / 426.1 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.304e-05/0.3157, allocations: 16 kB / 426.1 MB, free: 9.234 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.moving[1],kinematicPTP.noWphase) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002053/0.3159, allocations: 162.8 kB / 426.3 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.557e-05/0.316, allocations: 31.66 kB / 426.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.3161, allocations: 51.3 kB / 426.3 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.3161, allocations: 4 kB / 426.3 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.3162, allocations: 0 / 426.3 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.3162, allocations: 0 / 426.3 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003363/0.3195, allocations: 1.995 MB / 428.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.3196, allocations: 8 kB / 428.3 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005727/0.3201, allocations: 168.2 kB / 428.5 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/0.3202, allocations: 11.94 kB / 428.5 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.872e-05/0.3202, allocations: 19.98 kB / 428.5 MB, free: 6.613 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.3202, allocations: 19.92 kB / 428.6 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.78e-06/0.3202, allocations: 11.94 kB / 428.6 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002289/0.3225, allocations: 1.333 MB / 429.9 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.3227, allocations: 156.7 kB / 430.1 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.462e-05/0.3227, allocations: 16 kB / 430.1 MB, free: 4.934 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000466/0.3232, allocations: 95.91 kB / 430.2 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.3234, allocations: 95.64 kB / 430.3 MB, free: 4.746 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.3234, allocations: 24 kB / 430.3 MB, free: 4.723 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000129/0.3236, allocations: 155.2 kB / 430.4 MB, free: 4.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3236, allocations: 0 / 430.4 MB, free: 4.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000449/0.324, allocations: 96 kB / 430.5 MB, free: 4.477 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 (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.0001447/0.3242, allocations: 123.2 kB / 430.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.3261, allocations: 0.9157 MB / 431.6 MB, free: 3.426 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3261, allocations: 4 kB / 431.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008031/0.3269, allocations: 361.8 kB / 431.9 MB, free: 3.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006644/0.3276, allocations: 66.36 kB / 432 MB, free: 3.008 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.3293, allocations: 1.191 MB / 433.2 MB, free: 1.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002072/0.3296, allocations: 0.7882 MB / 434 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002558/0.3298, allocations: 31.44 kB / 434 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/0.3298, allocations: 0 / 434 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of Templates: time 0.007636/0.3375, allocations: 5.515 MB / 439.5 MB, free: 11.35 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches