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.001087/0.001087, allocations: 194.7 kB / 18.07 MB, free: 3.758 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 226.5 MB / 245.4 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008297/0.0008294, allocations: 109.4 kB / 297.4 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002814/0.0002817, allocations: 4 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1941, allocations: 51.29 MB / 408.6 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08753/0.2816, allocations: 81.79 MB / 490.4 MB, free: 9.844 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.2819, allocations: 77.92 kB / 490.5 MB, free: 9.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0204/0.3023, allocations: 7.364 MB / 497.9 MB, free: 2.395 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3024, allocations: 0 / 497.9 MB, free: 2.395 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.3024, allocations: 4 kB / 497.9 MB, free: 2.391 MB / 362.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.001173/0.3036, allocations: 0.6431 MB / 498.5 MB, free: 1.695 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3036, allocations: 8.031 kB / 498.5 MB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.3037, allocations: 52.45 kB / 498.6 MB, free: 1.637 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004164/0.3042, allocations: 291.2 kB / 498.9 MB, free: 1.312 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.3044, allocations: 150.2 kB / 499 MB, free: 1.148 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.353e-05/0.3045, allocations: 36.28 kB / 499.1 MB, free: 1.113 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.3057, allocations: 0.5739 MB / 499.6 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.3057, allocations: 7.938 kB / 499.6 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.598e-05/0.3058, allocations: 12 kB / 499.6 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.3058, allocations: 8 kB / 499.7 MB, free: 500 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.3072, allocations: 0.5465 MB / 0.4885 GB, free: 15.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.3088, allocations: 1.029 MB / 0.4895 GB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.3103, allocations: 0.5072 MB / 0.49 GB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006515/0.311, allocations: 284.6 kB / 0.4902 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.592e-05/0.311, allocations: 8 kB / 0.4903 GB, free: 13.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.3111, allocations: 42.56 kB / 0.4903 GB, free: 13.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.615e-06/0.3111, allocations: 3.938 kB / 0.4903 GB, free: 13.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.0354/0.3465, allocations: 6.803 MB / 0.4969 GB, free: 7.121 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.3466, allocations: 152.9 kB / 0.4971 GB, free: 6.941 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003206/0.347, allocations: 270.4 kB / 0.4973 GB, free: 6.672 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.644e-05/0.3471, allocations: 37.7 kB / 0.4974 GB, free: 6.629 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.683e-05/0.3472, allocations: 145.5 kB / 0.4975 GB, free: 6.484 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.3474, allocations: 193.3 kB / 0.4977 GB, free: 6.293 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.828e-05/0.3475, allocations: 12 kB / 0.4977 GB, free: 6.281 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3476, allocations: 346.8 kB / 0.498 GB, free: 5.934 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/0.3491, allocations: 0.6582 MB / 0.4987 GB, free: 5.273 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.3508, allocations: 0.8356 MB / 0.4995 GB, free: 4.363 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003025/0.3539, allocations: 1.335 MB / 0.5008 GB, free: 2.953 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.3539, allocations: 4 kB / 0.5008 GB, free: 2.949 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003562/0.3575, allocations: 1.479 MB / 0.5023 GB, free: 1.461 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.3575, allocations: 8 kB / 0.5023 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/0.3575, allocations: 4 kB / 0.5023 GB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.896e-05/0.3576, allocations: 8 kB / 0.5023 GB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.3589, allocations: 235.8 kB / 0.5025 GB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.907e-05/0.3589, allocations: 15.92 kB / 0.5025 GB, free: 1.195 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000941/0.3598, allocations: 127.7 kB / 0.5026 GB, free: 1.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-05/0.36, allocations: 27.98 kB / 0.5027 GB, free: 1.043 MB / 378.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0003701/0.3603, allocations: 189.6 kB / 0.5028 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003504/0.3607, allocations: 161.1 kB / 0.503 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001999/0.3609, allocations: 67.61 kB / 0.5031 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/0.3609, allocations: 8 kB / 0.5031 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.3609, allocations: 3.938 kB / 0.5031 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.361, allocations: 7.984 kB / 0.5031 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2083/0.5693, allocations: 2.319 MB / 0.5054 GB, free: 97.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.031e-05/0.5694, allocations: 13.06 kB / 0.5054 GB, free: 97.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007963/0.5702, allocations: 197 kB / 0.5056 GB, free: 97.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.097e-05/0.5702, allocations: 23.77 kB / 0.5056 GB, free: 97.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.979e-05/0.5703, allocations: 27.14 kB / 0.5056 GB, free: 97.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.009e-05/0.5703, allocations: 24.39 kB / 0.5056 GB, free: 97.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.229e-05/0.5703, allocations: 16.03 kB / 0.5056 GB, free: 97.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00327/0.5736, allocations: 1.682 MB / 0.5073 GB, free: 97.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00029/0.5739, allocations: 181.9 kB / 0.5075 GB, free: 97.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.43e-05/0.574, allocations: 25.28 kB / 0.5075 GB, free: 97.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006049/0.5746, allocations: 100.7 kB / 0.5076 GB, free: 97.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002356/0.5749, allocations: 111.4 kB / 0.5077 GB, free: 97.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.465e-05/0.5749, allocations: 37.12 kB / 0.5077 GB, free: 97.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002106/0.5751, allocations: 188.3 kB / 0.5079 GB, free: 97.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5751, allocations: 0 / 0.5079 GB, free: 97.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000814/0.576, allocations: 132.2 kB / 0.508 GB, free: 97.16 MB / 378.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0002125/0.5762, allocations: 134.8 kB / 0.5081 GB, free: 97.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002895/0.5791, allocations: 1.206 MB / 0.5093 GB, free: 96.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.5791, allocations: 6.312 kB / 0.5093 GB, free: 96.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009133/0.58, allocations: 384.8 kB / 0.5097 GB, free: 96.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.5812, allocations: 158.4 kB / 0.5099 GB, free: 96.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.5833, allocations: 1.46 MB / 0.5113 GB, free: 95.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.5836, allocations: 0.8257 MB / 0.5121 GB, free: 94.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003334/0.5839, allocations: 49.61 kB / 0.5121 GB, free: 94.91 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5839, allocations: 0 / 0.5121 GB, free: 94.91 MB / 378.7 MB Notification: Performance of Templates: time 0.008343/0.5922, allocations: 7.316 MB / 0.5193 GB, free: 91.23 MB / 378.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/jenkins1/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