Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,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.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,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.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001696/0.001696, allocations: 191.8 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 226.6 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009257/0.0009257, allocations: 93.25 kB / 296.8 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002954, allocations: 7.984 kB / 356.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2828, allocations: 51.28 MB / 408 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002089/0.285, allocations: 2.002 MB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2862, allocations: 0.8049 MB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.2863, allocations: 7.938 kB / 410.8 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002441/0.2866, allocations: 45.3 kB / 410.9 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000174/0.2868, allocations: 47.7 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004566/0.2872, allocations: 169.1 kB / 411.1 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002825/0.2875, allocations: 360 kB / 411.5 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.2877, allocations: 87.3 kB / 411.5 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.2879, allocations: 147.5 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.2881, allocations: 151.3 kB / 411.8 MB, free: 23.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.815e-05/0.2881, allocations: 16 kB / 411.8 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.83e-05/0.2882, allocations: 16 kB / 411.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.2883, allocations: 87.7 kB / 411.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.2884, allocations: 160.9 kB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001744/0.2886, allocations: 244.4 kB / 412.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.2886, allocations: 4 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2886, allocations: 0.875 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.2886, allocations: 0 / 412.3 MB, free: 23.41 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0009744/0.2896, allocations: 0.6358 MB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.2896, allocations: 8.031 kB / 413 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.729e-05/0.2897, allocations: 48.47 kB / 413 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.2901, allocations: 299.1 kB / 413.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/0.2902, allocations: 150.3 kB / 413.5 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.86e-05/0.2903, allocations: 28.38 kB / 413.5 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009636/0.2913, allocations: 0.5856 MB / 414.1 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.2913, allocations: 3.906 kB / 414.1 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.2913, allocations: 12 kB / 414.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.2913, allocations: 4 kB / 414.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.2925, allocations: 0.5347 MB / 414.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.2937, allocations: 1.033 MB / 415.7 MB, free: 19.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.2951, allocations: 0.5199 MB / 416.2 MB, free: 19.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005237/0.2957, allocations: 274.5 kB / 416.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.718e-05/0.2957, allocations: 11.94 kB / 416.5 MB, free: 19.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.2958, allocations: 38.56 kB / 416.5 MB, free: 18.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 3.326e-06/0.2958, allocations: 0 / 416.5 MB, free: 18.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03493/0.3307, allocations: 6.794 MB / 423.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/0.3308, allocations: 149 kB / 423.5 MB, free: 12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.3311, allocations: 254.5 kB / 423.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.769e-05/0.3311, allocations: 41.7 kB / 423.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.3312, allocations: 145.5 kB / 423.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.3314, allocations: 193.3 kB / 424.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.997e-05/0.3314, allocations: 12 kB / 424.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.694e-05/0.3315, allocations: 346.8 kB / 424.4 MB, free: 11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.3328, allocations: 0.65 MB / 425.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.3342, allocations: 0.8354 MB / 425.9 MB, free: 9.434 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002465/0.3367, allocations: 1.322 MB / 427.2 MB, free: 8.035 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.3367, allocations: 4 kB / 427.2 MB, free: 8.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002878/0.3396, allocations: 1.468 MB / 428.7 MB, free: 6.555 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.3396, allocations: 8 kB / 428.7 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.3396, allocations: 4 kB / 428.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.3396, allocations: 12 kB / 428.7 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.3409, allocations: 231.7 kB / 429 MB, free: 6.305 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.3409, allocations: 8 kB / 429 MB, free: 6.297 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008505/0.3417, allocations: 127.7 kB / 429.1 MB, free: 6.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.703e-05/0.3418, allocations: 28 kB / 429.1 MB, free: 6.145 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.0003001/0.3421, allocations: 193.6 kB / 429.3 MB, free: 5.945 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002628/0.3424, allocations: 161.1 kB / 429.5 MB, free: 5.781 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001564/0.3426, allocations: 67.61 kB / 429.5 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3426, allocations: 8 kB / 429.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.3426, allocations: 0 / 429.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3426, allocations: 7.984 kB / 429.5 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003978/0.3466, allocations: 2.311 MB / 431.9 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.357e-06/0.3466, allocations: 9 kB / 431.9 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006675/0.3473, allocations: 203.7 kB / 432.1 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.246e-05/0.3473, allocations: 16 kB / 432.1 MB, free: 2.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.487e-05/0.3474, allocations: 24 kB / 432.1 MB, free: 2.957 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.06e-05/0.3474, allocations: 19.94 kB / 432.1 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/0.3474, allocations: 20.12 kB / 432.1 MB, free: 2.918 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/0.35, allocations: 1.681 MB / 433.8 MB, free: 1.082 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.3502, allocations: 176.5 kB / 434 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.225e-05/0.3503, allocations: 24 kB / 434 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/0.3508, allocations: 104 kB / 434.1 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.351, allocations: 99.62 kB / 434.2 MB, free: 0.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.356e-05/0.351, allocations: 32 kB / 434.2 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000149/0.3512, allocations: 186 kB / 434.4 MB, free: 468 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3512, allocations: 0 / 434.4 MB, free: 468 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006404/0.3519, allocations: 120 kB / 434.5 MB, free: 348 kB / 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.000166/0.352, allocations: 151.1 kB / 434.7 MB, free: 188 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002691/0.3547, allocations: 1.182 MB / 435.9 MB, free: 15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.3548, allocations: 0 / 435.9 MB, free: 15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009862/0.3557, allocations: 383.2 kB / 436.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.3569, allocations: 155 kB / 436.4 MB, free: 14.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.3595, allocations: 1.437 MB / 437.8 MB, free: 12.87 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.36, allocations: 0.8288 MB / 438.7 MB, free: 12.01 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003746/0.3604, allocations: 43.42 kB / 438.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of SimCode: time 1.422e-06/0.3604, allocations: 0 / 438.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of Templates: time 0.01241/0.3728, allocations: 7.311 MB / 446 MB, free: 4.68 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches