Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,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.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 195.7 kB / 18.06 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.5 MB / 245.4 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007183/0.0007184, allocations: 96.66 kB / 297.4 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002261/0.0002261, allocations: 8 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2058, allocations: 51.28 MB / 408.6 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09357/0.2994, allocations: 81.67 MB / 490.3 MB, free: 9.902 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.2997, allocations: 79.95 kB / 490.4 MB, free: 9.824 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02044/0.3201, allocations: 7.298 MB / 497.7 MB, free: 2.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3202, allocations: 3.938 kB / 497.7 MB, free: 2.516 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.3202, allocations: 11.98 kB / 497.7 MB, free: 2.504 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00102/0.3212, allocations: 0.5888 MB / 498.3 MB, free: 1.863 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3213, allocations: 12.03 kB / 498.3 MB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.66e-05/0.3213, allocations: 36.56 kB / 498.3 MB, free: 1.816 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003216/0.3217, allocations: 284.2 kB / 498.6 MB, free: 1.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.3219, allocations: 138.3 kB / 498.8 MB, free: 1.348 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.322, allocations: 32.38 kB / 498.8 MB, free: 1.316 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.3231, allocations: 0.5856 MB / 499.4 MB, free: 0.707 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.3232, allocations: 0 / 499.4 MB, free: 0.707 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.881e-05/0.3232, allocations: 12 kB / 499.4 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.3232, allocations: 4 kB / 499.4 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.3246, allocations: 0.5503 MB / 499.9 MB, free: 144 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.3261, allocations: 1.014 MB / 0.4892 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.3275, allocations: 0.504 MB / 0.4897 GB, free: 14.51 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006256/0.3281, allocations: 280.5 kB / 0.49 GB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.485e-05/0.3282, allocations: 15.92 kB / 0.49 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.3282, allocations: 38.56 kB / 0.49 GB, free: 14.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.314e-06/0.3282, allocations: 0 / 0.49 GB, free: 14.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.03696/0.3652, allocations: 6.762 MB / 0.4966 GB, free: 7.387 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.3653, allocations: 145 kB / 0.4968 GB, free: 7.211 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002397/0.3656, allocations: 212.9 kB / 0.497 GB, free: 6.992 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.902e-05/0.3657, allocations: 37.7 kB / 0.497 GB, free: 6.949 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.742e-05/0.3657, allocations: 137.6 kB / 0.4971 GB, free: 6.812 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.3659, allocations: 193.3 kB / 0.4973 GB, free: 6.621 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.833e-05/0.366, allocations: 16 kB / 0.4973 GB, free: 6.605 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3662, allocations: 342.8 kB / 0.4977 GB, free: 6.262 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/0.3677, allocations: 0.6617 MB / 0.4983 GB, free: 5.598 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001596/0.3693, allocations: 0.8398 MB / 0.4991 GB, free: 4.684 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/0.3723, allocations: 1.332 MB / 0.5004 GB, free: 3.277 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.3723, allocations: 4 kB / 0.5004 GB, free: 3.273 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003418/0.3758, allocations: 1.486 MB / 0.5019 GB, free: 1.781 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.3758, allocations: 7.938 kB / 0.5019 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.3758, allocations: 8 kB / 0.5019 GB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.3759, allocations: 8 kB / 0.5019 GB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.3771, allocations: 231.8 kB / 0.5021 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.951e-05/0.3772, allocations: 16.23 kB / 0.5021 GB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008923/0.3781, allocations: 127.7 kB / 0.5023 GB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-05/0.3782, allocations: 27.98 kB / 0.5023 GB, free: 1.363 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.0003125/0.3785, allocations: 177.6 kB / 0.5025 GB, free: 1.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002961/0.3788, allocations: 157.2 kB / 0.5026 GB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/0.379, allocations: 67.3 kB / 0.5027 GB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.379, allocations: 11.94 kB / 0.5027 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.379, allocations: 7.938 kB / 0.5027 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.379, allocations: 3.984 kB / 0.5027 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1794/0.5584, allocations: 2.297 MB / 0.5049 GB, free: 98.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.008e-05/0.5585, allocations: 9.906 kB / 0.505 GB, free: 98.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008306/0.5593, allocations: 201 kB / 0.5051 GB, free: 98.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.356e-05/0.5594, allocations: 21.59 kB / 0.5052 GB, free: 98.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.324e-05/0.5594, allocations: 25.45 kB / 0.5052 GB, free: 98.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.277e-05/0.5595, allocations: 20.75 kB / 0.5052 GB, free: 98.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-05/0.5595, allocations: 14.78 kB / 0.5052 GB, free: 98.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003105/0.5626, allocations: 1.682 MB / 0.5069 GB, free: 97.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.5628, allocations: 172.1 kB / 0.507 GB, free: 97.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.254e-05/0.5629, allocations: 29.02 kB / 0.5071 GB, free: 97.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000601/0.5635, allocations: 95.77 kB / 0.5072 GB, free: 97.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.5637, allocations: 110.9 kB / 0.5073 GB, free: 97.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.498e-05/0.5638, allocations: 30.33 kB / 0.5073 GB, free: 97.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000119/0.5639, allocations: 144.2 kB / 0.5074 GB, free: 97.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5639, allocations: 0 / 0.5074 GB, free: 97.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006712/0.5646, allocations: 127.5 kB / 0.5075 GB, free: 97.48 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.0001783/0.5648, allocations: 143.8 kB / 0.5077 GB, free: 97.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003087/0.5679, allocations: 1.201 MB / 0.5089 GB, free: 97.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/0.5679, allocations: 3.531 kB / 0.5089 GB, free: 97.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009149/0.5688, allocations: 384.7 kB / 0.5092 GB, free: 97.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009583/0.5698, allocations: 150 kB / 0.5094 GB, free: 97.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.5717, allocations: 1.364 MB / 0.5107 GB, free: 95.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.5719, allocations: 0.8174 MB / 0.5115 GB, free: 95.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.5723, allocations: 42.2 kB / 0.5115 GB, free: 95.27 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5723, allocations: 4 kB / 0.5115 GB, free: 95.27 MB / 378.7 MB Notification: Performance of Templates: time 0.00762/0.5799, allocations: 7.136 MB / 0.5185 GB, free: 91.98 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches