Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,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.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 193.5 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.374/1.374, allocations: 226.6 MB / 244.4 MB, free: 8.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007835/0.0007837, allocations: 97.38 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002701/0.0002703, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2466, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002095/0.2488, allocations: 1.947 MB / 409.4 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.25, allocations: 0.7641 MB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.2501, allocations: 4.5 kB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002657/0.2504, allocations: 51.67 kB / 410.3 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001575/0.2506, allocations: 39.27 kB / 410.3 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004357/0.251, allocations: 135.8 kB / 410.4 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002419/0.2513, allocations: 331.3 kB / 410.7 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.2515, allocations: 77.48 kB / 410.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.2517, allocations: 130.8 kB / 411 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.2518, allocations: 151.4 kB / 411.1 MB, free: 24.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.703e-05/0.2519, allocations: 16 kB / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.668e-05/0.2519, allocations: 16 kB / 411.1 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.368e-05/0.252, allocations: 71.72 kB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.053e-05/0.2521, allocations: 65.58 kB / 411.3 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.2523, allocations: 220.4 kB / 411.5 MB, free: 23.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2523, allocations: 0 / 411.5 MB, free: 23.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.2523, allocations: 5.719 kB / 411.5 MB, free: 23.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.774e-06/0.2523, allocations: 0 / 411.5 MB, free: 23.83 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0009877/0.2533, allocations: 0.5809 MB / 412.1 MB, free: 23.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2533, allocations: 8.031 kB / 412.1 MB, free: 23.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.886e-05/0.2534, allocations: 39.62 kB / 412.1 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.2537, allocations: 260.8 kB / 412.4 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.2539, allocations: 149.6 kB / 412.5 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.058e-05/0.2539, allocations: 31.95 kB / 412.5 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009998/0.2549, allocations: 0.5572 MB / 413.1 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.2549, allocations: 3.906 kB / 413.1 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.514e-05/0.255, allocations: 16 kB / 413.1 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.255, allocations: 8 kB / 413.1 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.2562, allocations: 0.5385 MB / 413.7 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.2575, allocations: 1.022 MB / 414.7 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.2589, allocations: 0.5108 MB / 415.2 MB, free: 19.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005426/0.2595, allocations: 275.8 kB / 415.5 MB, free: 19.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.2595, allocations: 12.17 kB / 415.5 MB, free: 19.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.2596, allocations: 42.7 kB / 415.5 MB, free: 19.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.515e-06/0.2596, allocations: 0 / 415.5 MB, free: 19.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03786/0.2974, allocations: 6.733 MB / 422.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.196e-05/0.2976, allocations: 153 kB / 422.4 MB, free: 12.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.2978, allocations: 199.9 kB / 422.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.452e-05/0.2979, allocations: 37.7 kB / 422.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.182e-05/0.2979, allocations: 141.5 kB / 422.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.2981, allocations: 193.3 kB / 423 MB, free: 12.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-05/0.2982, allocations: 12 kB / 423 MB, free: 12.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.394e-05/0.2982, allocations: 342.8 kB / 423.3 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.2997, allocations: 0.6539 MB / 424 MB, free: 11.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001563/0.3013, allocations: 0.8315 MB / 424.8 MB, free: 10.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.3026, allocations: 0.5981 MB / 425.4 MB, free: 9.508 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3026, allocations: 7.938 kB / 425.4 MB, free: 9.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003127/0.3058, allocations: 1.46 MB / 426.9 MB, free: 8.035 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.3058, allocations: 8 kB / 426.9 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.3058, allocations: 7.984 kB / 426.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.563e-05/0.3059, allocations: 12 kB / 426.9 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/0.3071, allocations: 231.7 kB / 427.1 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.3072, allocations: 11.94 kB / 427.1 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009567/0.3081, allocations: 127.7 kB / 427.3 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.217e-05/0.3082, allocations: 32 kB / 427.3 MB, free: 7.613 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0002907/0.3085, allocations: 185.5 kB / 427.5 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002566/0.3088, allocations: 161.4 kB / 427.6 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001284/0.3089, allocations: 63.53 kB / 427.7 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.3089, allocations: 8 kB / 427.7 MB, free: 7.191 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.3089, allocations: 4 kB / 427.7 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.3089, allocations: 7.969 kB / 427.7 MB, free: 7.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00417/0.3131, allocations: 2.284 MB / 430 MB, free: 4.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.3132, allocations: 8 kB / 430 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007779/0.3139, allocations: 208.5 kB / 430.2 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-05/0.314, allocations: 12 kB / 430.2 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.564e-05/0.314, allocations: 24 kB / 430.2 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.121e-05/0.314, allocations: 23.92 kB / 430.3 MB, free: 4.441 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/0.3141, allocations: 15.94 kB / 430.3 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002873/0.3169, allocations: 1.666 MB / 431.9 MB, free: 2.605 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.3171, allocations: 160.7 kB / 432.1 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.528e-05/0.3172, allocations: 31.98 kB / 432.1 MB, free: 2.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000573/0.3178, allocations: 95.98 kB / 432.2 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.318, allocations: 103.7 kB / 432.3 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.53e-05/0.318, allocations: 28 kB / 432.3 MB, free: 2.176 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001152/0.3182, allocations: 139.5 kB / 432.5 MB, free: 2.039 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3182, allocations: 4 kB / 432.5 MB, free: 2.035 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006454/0.3188, allocations: 120 kB / 432.6 MB, free: 1.918 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001691/0.319, allocations: 142.9 kB / 432.7 MB, free: 1.766 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002668/0.3217, allocations: 1.182 MB / 433.9 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.3217, allocations: 4 kB / 433.9 MB, free: 0.582 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009333/0.3226, allocations: 375.2 kB / 434.3 MB, free: 224 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008717/0.3235, allocations: 147.7 kB / 434.4 MB, free: 80 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.3262, allocations: 1.37 MB / 435.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/0.3267, allocations: 0.8093 MB / 436.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003615/0.3271, allocations: 47.42 kB / 436.7 MB, free: 13.65 MB / 314.7 MB Notification: Performance of SimCode: time 8.21e-07/0.3271, allocations: 0 / 436.7 MB, free: 13.65 MB / 314.7 MB Notification: Performance of Templates: time 0.01139/0.3385, allocations: 7.076 MB / 443.7 MB, free: 6.578 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches