Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 115.7 kB / 17.74 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 189.6 kB / 18.66 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 39.94 kB / 351.9 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2864, allocations: 49.44 MB / 401.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003499/0.2899, allocations: 2.321 MB / 403.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.2913, allocations: 0.7755 MB / 404.5 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.2914, allocations: 7.938 kB / 404.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002858/0.2918, allocations: 47.58 kB / 404.5 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.292, allocations: 59.56 kB / 404.6 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004574/0.2924, allocations: 175.6 kB / 404.8 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003836/0.2928, allocations: 367.6 kB / 405.1 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.293, allocations: 95.36 kB / 405.2 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002246/0.2933, allocations: 163.4 kB / 405.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.2935, allocations: 171.3 kB / 405.5 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.589e-05/0.2936, allocations: 36 kB / 405.6 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.274e-05/0.2936, allocations: 32 kB / 405.6 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.2938, allocations: 91.78 kB / 405.7 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.2939, allocations: 147.2 kB / 405.8 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003507/0.2942, allocations: 320.2 kB / 406.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2943, allocations: 0 / 406.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2943, allocations: 0 / 406.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.2943, allocations: 0 / 406.2 MB, free: 4.227 MB / 318.1 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.001219/0.2955, allocations: 0.6162 MB / 406.8 MB, free: 3.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.2956, allocations: 11.89 kB / 406.8 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.737e-05/0.2957, allocations: 40.56 kB / 406.8 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.2961, allocations: 276 kB / 407.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.2963, allocations: 142.1 kB / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.346e-05/0.2963, allocations: 28.28 kB / 407.3 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.2975, allocations: 0.5454 MB / 407.8 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.2975, allocations: 0 / 407.8 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.16e-05/0.2976, allocations: 19.98 kB / 407.8 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.2976, allocations: 8 kB / 407.8 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.299, allocations: 0.5113 MB / 408.3 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.3004, allocations: 1.002 MB / 409.3 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.3021, allocations: 0.5041 MB / 409.8 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006178/0.3027, allocations: 259.4 kB / 410.1 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.185e-05/0.3027, allocations: 8 kB / 410.1 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.3028, allocations: 42.5 kB / 410.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.924e-06/0.3028, allocations: 0 / 410.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03992/0.3427, allocations: 5.716 MB / 415.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.3429, allocations: 149 kB / 416 MB, free: 10.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002441/0.3431, allocations: 195.2 kB / 416.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.651e-05/0.3432, allocations: 37.7 kB / 416.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.954e-05/0.3434, allocations: 149.4 kB / 416.4 MB, free: 9.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.3436, allocations: 189.3 kB / 416.6 MB, free: 9.477 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002983/0.3439, allocations: 110.7 kB / 416.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.344, allocations: 346.8 kB / 417 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.3457, allocations: 0.611 MB / 417.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001772/0.3474, allocations: 0.8002 MB / 418.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003155/0.3506, allocations: 1.247 MB / 419.7 MB, free: 6.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.3506, allocations: 4 kB / 419.7 MB, free: 6.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003632/0.3543, allocations: 1.394 MB / 421.1 MB, free: 4.797 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.3543, allocations: 12.03 kB / 421.1 MB, free: 4.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.3543, allocations: 4 kB / 421.1 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.659e-05/0.3544, allocations: 12.38 kB / 421.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.3557, allocations: 211.6 kB / 421.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/0.3558, allocations: 11.94 kB / 421.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009655/0.3567, allocations: 103.7 kB / 421.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.257e-05/0.3568, allocations: 35.92 kB / 421.5 MB, free: 4.414 MB / 334.1 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.noWphase,kinematicPTP.moving[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003277/0.3572, allocations: 185.5 kB / 421.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00031/0.3575, allocations: 145.5 kB / 421.8 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000196/0.3577, allocations: 63.3 kB / 421.8 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/0.3577, allocations: 11.98 kB / 421.9 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.3577, allocations: 0 / 421.9 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.3578, allocations: 7.984 kB / 421.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004868/0.3626, allocations: 2.179 MB / 424 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.875e-05/0.3627, allocations: 8 kB / 424 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007834/0.3635, allocations: 179.7 kB / 424.2 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.987e-05/0.3635, allocations: 16 kB / 424.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.223e-05/0.3635, allocations: 27.98 kB / 424.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.44e-05/0.3636, allocations: 16.22 kB / 424.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.074e-05/0.3636, allocations: 19.94 kB / 424.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003276/0.3669, allocations: 1.549 MB / 425.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002207/0.3671, allocations: 156.6 kB / 426 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.46e-05/0.3672, allocations: 32.05 kB / 426 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006263/0.3678, allocations: 75.92 kB / 426.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.368, allocations: 99.59 kB / 426.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-05/0.3681, allocations: 28 kB / 426.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001372/0.3682, allocations: 148.2 kB / 426.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3683, allocations: 0 / 426.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006939/0.369, allocations: 116 kB / 426.5 MB, free: 15 MB / 350.1 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 (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.0001935/0.3692, allocations: 143 kB / 426.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002924/0.3721, allocations: 1.136 MB / 427.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.3721, allocations: 0 / 427.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.3731, allocations: 346.3 kB / 428.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009225/0.3741, allocations: 132.8 kB / 428.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.3767, allocations: 1.211 MB / 429.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.3771, allocations: 0.809 MB / 430.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003449/0.3775, allocations: 43.44 kB / 430.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3775, allocations: 3.938 kB / 430.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of Templates: time 0.01108/0.3886, allocations: 7.167 MB / 437.5 MB, free: 3.844 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches