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.001415/0.001416, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 226.6 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009279/0.0009277, allocations: 109.2 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002385/0.0002387, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2303, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002297/0.2326, allocations: 1.992 MB / 409.5 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.2341, allocations: 0.8409 MB / 410.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.2344, allocations: 7.938 kB / 410.3 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002549/0.2346, allocations: 44.77 kB / 410.4 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.2349, allocations: 41.58 kB / 410.4 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000607/0.2355, allocations: 164.5 kB / 410.6 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003893/0.2359, allocations: 359.2 kB / 410.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.2361, allocations: 74.03 kB / 411 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/0.2365, allocations: 146.3 kB / 411.1 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.2367, allocations: 163.2 kB / 411.3 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.268e-05/0.2367, allocations: 16 kB / 411.3 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.63e-05/0.2368, allocations: 16 kB / 411.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.936e-05/0.2369, allocations: 83.72 kB / 411.4 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.349e-05/0.237, allocations: 77.52 kB / 411.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002091/0.2372, allocations: 244.4 kB / 411.7 MB, free: 23.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2372, allocations: 2.875 kB / 411.7 MB, free: 23.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2372, allocations: 0 / 411.7 MB, free: 23.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.2372, allocations: 0 / 411.7 MB, free: 23.57 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.001114/0.2383, allocations: 0.6295 MB / 412.4 MB, free: 22.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.2384, allocations: 8.031 kB / 412.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.912e-05/0.2385, allocations: 47.53 kB / 412.4 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.2388, allocations: 294 kB / 412.7 MB, free: 22.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/0.239, allocations: 145.7 kB / 412.8 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.812e-05/0.2391, allocations: 31.95 kB / 412.9 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.2401, allocations: 0.5892 MB / 413.5 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.2402, allocations: 0 / 413.5 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.776e-05/0.2402, allocations: 12 kB / 413.5 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.2402, allocations: 4 kB / 413.5 MB, free: 21.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.2415, allocations: 0.5308 MB / 414 MB, free: 21.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.2428, allocations: 1.041 MB / 415.1 MB, free: 20.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.2442, allocations: 0.5225 MB / 415.6 MB, free: 19.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005549/0.2448, allocations: 263.8 kB / 415.8 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.273e-05/0.2448, allocations: 16.33 kB / 415.8 MB, free: 19.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.2449, allocations: 50.64 kB / 415.9 MB, free: 19.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.863e-06/0.2449, allocations: 0 / 415.9 MB, free: 19.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03764/0.2825, allocations: 6.779 MB / 422.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.477e-05/0.2826, allocations: 152.9 kB / 422.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002357/0.2829, allocations: 258.9 kB / 423.1 MB, free: 11.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.067e-05/0.283, allocations: 37.7 kB / 423.1 MB, free: 11.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.525e-05/0.283, allocations: 153.4 kB / 423.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.2832, allocations: 193.3 kB / 423.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.333e-05/0.2833, allocations: 15.94 kB / 423.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.426e-05/0.2833, allocations: 342.8 kB / 423.8 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.2847, allocations: 0.6578 MB / 424.5 MB, free: 10.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.2862, allocations: 0.8276 MB / 425.3 MB, free: 9.594 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.2875, allocations: 0.6059 MB / 425.9 MB, free: 8.988 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.2875, allocations: 4 kB / 425.9 MB, free: 8.984 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003063/0.2906, allocations: 1.46 MB / 427.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.2906, allocations: 8 kB / 427.4 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.2906, allocations: 4 kB / 427.4 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.2906, allocations: 12 kB / 427.4 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.2919, allocations: 231.7 kB / 427.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.2919, allocations: 15.94 kB / 427.6 MB, free: 7.254 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009594/0.2929, allocations: 119.7 kB / 427.7 MB, free: 7.137 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.347e-05/0.293, allocations: 39.98 kB / 427.8 MB, free: 7.098 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.0002898/0.2933, allocations: 185.6 kB / 428 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002558/0.2935, allocations: 153.1 kB / 428.1 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000144/0.2937, allocations: 67.61 kB / 428.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.2937, allocations: 8 kB / 428.2 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.2937, allocations: 4 kB / 428.2 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.2937, allocations: 7.922 kB / 428.2 MB, free: 6.664 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004239/0.298, allocations: 2.305 MB / 430.5 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/0.298, allocations: 8 kB / 430.5 MB, free: 4.168 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007075/0.2987, allocations: 207.8 kB / 430.7 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.646e-05/0.2988, allocations: 19.97 kB / 430.7 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.603e-05/0.2988, allocations: 28 kB / 430.8 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.104e-05/0.2988, allocations: 19.94 kB / 430.8 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/0.2988, allocations: 15.94 kB / 430.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/0.3016, allocations: 1.681 MB / 432.5 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.3018, allocations: 184.4 kB / 432.7 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.294e-05/0.3019, allocations: 24 kB / 432.7 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005667/0.3024, allocations: 95.97 kB / 432.8 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.3026, allocations: 103.7 kB / 432.9 MB, free: 1.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.265e-05/0.3026, allocations: 32 kB / 432.9 MB, free: 1.598 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001297/0.3028, allocations: 182 kB / 433.1 MB, free: 1.418 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3028, allocations: 4 kB / 433.1 MB, free: 1.414 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005952/0.3034, allocations: 124 kB / 433.2 MB, free: 1.293 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.0001397/0.3035, allocations: 134.9 kB / 433.3 MB, free: 1.152 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00247/0.306, allocations: 1.19 MB / 434.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.306, allocations: 5.375 kB / 434.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009763/0.307, allocations: 377.8 kB / 434.9 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008453/0.3079, allocations: 154.9 kB / 435.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.3102, allocations: 1.434 MB / 436.5 MB, free: 13.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.3106, allocations: 0.8288 MB / 437.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003206/0.311, allocations: 43.42 kB / 437.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of SimCode: time 3.21e-07/0.311, allocations: 0 / 437.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of Templates: time 0.01053/0.3215, allocations: 7.324 MB / 444.7 MB, free: 5.629 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