Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001183/0.001183, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001418, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 59.19 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09832/0.09949, allocations: 50.54 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003109/0.1026, allocations: 2.141 MB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.1037, allocations: 0.686 MB / 361.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.867e-05/0.1038, allocations: 4 kB / 361.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002503/0.1041, allocations: 47.64 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.1043, allocations: 55.62 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.1046, allocations: 119.8 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003258/0.1049, allocations: 339.2 kB / 362.3 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.1051, allocations: 72.3 kB / 362.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002404/0.1053, allocations: 155.5 kB / 362.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002048/0.1055, allocations: 155.4 kB / 362.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.391e-05/0.1056, allocations: 32 kB / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.059e-05/0.1056, allocations: 28 kB / 362.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.923e-05/0.1057, allocations: 79.8 kB / 362.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.1059, allocations: 123.4 kB / 362.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002755/0.1061, allocations: 287 kB / 363.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1061, allocations: 0 / 363.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1062, allocations: 0 / 363.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1062, allocations: 0 / 363.2 MB, free: 9.047 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.00102/0.1072, allocations: 0.5803 MB / 363.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.1072, allocations: 8.031 kB / 363.8 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.575e-05/0.1073, allocations: 32.66 kB / 363.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.1077, allocations: 256 kB / 364.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001882/0.1079, allocations: 134.2 kB / 364.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.525e-05/0.1079, allocations: 31.94 kB / 364.2 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007561/0.1087, allocations: 367.5 kB / 364.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.1087, allocations: 0 / 364.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.1087, allocations: 8 kB / 364.6 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1088, allocations: 4 kB / 364.6 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.11, allocations: 0.4901 MB / 365.1 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.1116, allocations: 1.011 MB / 366.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.1127, allocations: 340.7 kB / 366.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000443/0.1131, allocations: 181.1 kB / 366.6 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.842e-05/0.1132, allocations: 8.234 kB / 366.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.1132, allocations: 34.8 kB / 366.6 MB, free: 5.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.753e-06/0.1132, allocations: 0 / 366.6 MB, free: 5.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.1855/0.2987, allocations: 5.784 MB / 372.4 MB, free: 20.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.2988, allocations: 62.62 kB / 372.5 MB, free: 20.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002513/0.299, allocations: 202.7 kB / 372.7 MB, free: 20.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.814e-05/0.2991, allocations: 34.73 kB / 372.7 MB, free: 20.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.058e-05/0.2992, allocations: 147.2 kB / 372.9 MB, free: 20.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.2993, allocations: 174.6 kB / 373 MB, free: 20.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002083/0.2995, allocations: 93.14 kB / 373.1 MB, free: 20.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.014e-05/0.2996, allocations: 335.5 kB / 373.4 MB, free: 20.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.3008, allocations: 467.6 kB / 373.9 MB, free: 20.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001251/0.302, allocations: 0.5147 MB / 374.4 MB, free: 19.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002169/0.3042, allocations: 0.8067 MB / 375.2 MB, free: 19.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3042, allocations: 0 / 375.2 MB, free: 19.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002499/0.3067, allocations: 0.9913 MB / 376.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.3068, allocations: 5.922 kB / 376.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.3068, allocations: 9.719 kB / 376.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.3068, allocations: 7.438 kB / 376.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000952/0.3078, allocations: 169 kB / 376.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.3078, allocations: 4.219 kB / 376.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006446/0.3084, allocations: 84.95 kB / 376.5 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-05/0.3085, allocations: 17.44 kB / 376.5 MB, free: 19.29 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.0001755/0.3087, allocations: 157.6 kB / 376.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.359e-05/0.3088, allocations: 27.94 kB / 376.7 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.185e-05/0.3089, allocations: 53.19 kB / 376.7 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.3089, allocations: 5.219 kB / 376.7 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.3089, allocations: 5.016 kB / 376.7 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3089, allocations: 3.422 kB / 376.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003804/0.3127, allocations: 1.872 MB / 378.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.3127, allocations: 9.234 kB / 378.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006279/0.3134, allocations: 143.6 kB / 378.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.516e-05/0.3134, allocations: 16.27 kB / 378.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.491e-05/0.3135, allocations: 19.84 kB / 378.8 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-05/0.3135, allocations: 16.22 kB / 378.8 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.768e-06/0.3135, allocations: 17.05 kB / 378.8 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002446/0.3159, allocations: 1.225 MB / 380.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.3161, allocations: 148.8 kB / 380.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.18e-05/0.3162, allocations: 22.55 kB / 380.2 MB, free: 17.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004879/0.3167, allocations: 67.56 kB / 380.3 MB, free: 17.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.3169, allocations: 92.41 kB / 380.4 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/0.3169, allocations: 20.52 kB / 380.4 MB, free: 17.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001623/0.3171, allocations: 145 kB / 380.6 MB, free: 17.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3171, allocations: 0 / 380.6 MB, free: 17.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005189/0.3176, allocations: 98.31 kB / 380.6 MB, free: 17.07 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.0001495/0.3178, allocations: 130.4 kB / 380.8 MB, free: 16.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002177/0.32, allocations: 0.8644 MB / 381.6 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/0.32, allocations: 0.9688 kB / 381.6 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008903/0.3209, allocations: 328.4 kB / 382 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006054/0.3215, allocations: 61.61 kB / 382 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/0.3235, allocations: 1.006 MB / 383 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.3238, allocations: 0.7817 MB / 383.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004005/0.3242, allocations: 85.28 kB / 383.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.3244, allocations: 34 kB / 383.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3244, allocations: 0 / 383.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of Templates: time 0.009383/0.3338, allocations: 5.694 MB / 389.6 MB, free: 13.12 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches