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.001054/0.001054, allocations: 196.9 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 226.6 MB / 244.4 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007386/0.0007387, allocations: 106.1 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002367/0.0002363, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2557, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.001916/0.2577, allocations: 1.793 MB / 409.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009384/0.2586, allocations: 0.6342 MB / 409.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.2588, allocations: 8.562 kB / 409.9 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002644/0.259, allocations: 39.77 kB / 410 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.2592, allocations: 40.59 kB / 410 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004223/0.2596, allocations: 97.16 kB / 410.1 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004191/0.2601, allocations: 295.8 kB / 410.4 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/0.2603, allocations: 54.3 kB / 410.4 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.2606, allocations: 136.6 kB / 410.6 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.2609, allocations: 135.5 kB / 410.7 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.769e-05/0.2609, allocations: 15.31 kB / 410.7 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.122e-05/0.261, allocations: 16 kB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.473e-05/0.2611, allocations: 63.8 kB / 410.8 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.152e-05/0.2611, allocations: 61.58 kB / 410.9 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.2613, allocations: 196.5 kB / 411 MB, free: 24.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.2614, allocations: 0 / 411 MB, free: 24.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.468e-06/0.2614, allocations: 0 / 411 MB, free: 24.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.2614, allocations: 3.938 kB / 411 MB, free: 24.27 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.001127/0.2625, allocations: 0.551 MB / 411.6 MB, free: 23.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.973e-05/0.2626, allocations: 8.031 kB / 411.6 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.2627, allocations: 31.72 kB / 411.6 MB, free: 23.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.2631, allocations: 246.2 kB / 411.9 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/0.2632, allocations: 137.6 kB / 412 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.439e-05/0.2633, allocations: 27.95 kB / 412 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007568/0.2641, allocations: 383.4 kB / 412.4 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.2641, allocations: 4 kB / 412.4 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.2641, allocations: 8 kB / 412.4 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.2642, allocations: 12 kB / 412.4 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.2653, allocations: 0.5057 MB / 412.9 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.2668, allocations: 1.034 MB / 414 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.2678, allocations: 356.7 kB / 414.3 MB, free: 20.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004317/0.2683, allocations: 185.2 kB / 414.5 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.2683, allocations: 8.234 kB / 414.5 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.601e-05/0.2684, allocations: 38.73 kB / 414.6 MB, free: 20.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.863e-06/0.2684, allocations: 0 / 414.6 MB, free: 20.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.0258/0.2942, allocations: 6.659 MB / 421.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.2943, allocations: 55.84 kB / 421.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.2945, allocations: 199.6 kB / 421.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.954e-05/0.2946, allocations: 33.7 kB / 421.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.496e-05/0.2947, allocations: 152.6 kB / 421.6 MB, free: 13.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.2948, allocations: 173.5 kB / 421.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.292e-05/0.2949, allocations: 8 kB / 421.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.295, allocations: 338.8 kB / 422.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.2962, allocations: 0.4969 MB / 422.7 MB, free: 12.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/0.2974, allocations: 0.549 MB / 423.2 MB, free: 11.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.2985, allocations: 441.9 kB / 423.6 MB, free: 11.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.2985, allocations: 3.953 kB / 423.6 MB, free: 11.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002504/0.301, allocations: 1.057 MB / 424.7 MB, free: 10.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.301, allocations: 4 kB / 424.7 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.3011, allocations: 4 kB / 424.7 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.05e-05/0.3011, allocations: 4 kB / 424.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009388/0.302, allocations: 187.8 kB / 424.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.3021, allocations: 7.922 kB / 424.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006779/0.3028, allocations: 111.9 kB / 425 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.976e-05/0.3028, allocations: 20 kB / 425 MB, free: 9.934 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.000225/0.3031, allocations: 165.6 kB / 425.2 MB, free: 9.762 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.007e-05/0.3031, allocations: 31.67 kB / 425.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.3032, allocations: 47.31 kB / 425.3 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.3033, allocations: 4 kB / 425.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.3033, allocations: 4 kB / 425.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.3033, allocations: 3.984 kB / 425.3 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003582/0.3069, allocations: 1.989 MB / 427.3 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.3069, allocations: 12.94 kB / 427.3 MB, free: 7.504 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006027/0.3075, allocations: 163.8 kB / 427.4 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.249e-05/0.3075, allocations: 12 kB / 427.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.112e-05/0.3076, allocations: 23.95 kB / 427.5 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-05/0.3076, allocations: 23.86 kB / 427.5 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/0.3076, allocations: 15.94 kB / 427.5 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002435/0.3101, allocations: 1.323 MB / 428.8 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/0.3102, allocations: 148.7 kB / 429 MB, free: 5.652 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.943e-05/0.3103, allocations: 27.94 kB / 429 MB, free: 5.625 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005234/0.3108, allocations: 91.92 kB / 429.1 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.311, allocations: 91.7 kB / 429.2 MB, free: 5.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/0.311, allocations: 24 kB / 429.2 MB, free: 5.422 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001339/0.3112, allocations: 143.5 kB / 429.3 MB, free: 5.281 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3112, allocations: 0 / 429.3 MB, free: 5.281 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004454/0.3116, allocations: 96 kB / 429.4 MB, free: 5.188 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.0001557/0.3118, allocations: 127.1 kB / 429.6 MB, free: 5.055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002083/0.3139, allocations: 0.9236 MB / 430.5 MB, free: 4.133 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3139, allocations: 0 / 430.5 MB, free: 4.133 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008499/0.3147, allocations: 361.6 kB / 430.8 MB, free: 3.781 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005776/0.3153, allocations: 59.94 kB / 430.9 MB, free: 3.723 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001902/0.3172, allocations: 1.191 MB / 432.1 MB, free: 2.395 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002039/0.3175, allocations: 0.7843 MB / 432.9 MB, free: 1.586 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000241/0.3177, allocations: 39.42 kB / 432.9 MB, free: 1.547 MB / 298.7 MB Notification: Performance of SimCode: time 7.32e-07/0.3177, allocations: 0 / 432.9 MB, free: 1.547 MB / 298.7 MB Notification: Performance of Templates: time 0.008271/0.326, allocations: 5.51 MB / 438.4 MB, free: 12.06 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