Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001445, allocations: 202.6 kB / 18.07 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.5 MB / 245.3 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007748/0.0007748, allocations: 103 kB / 297.4 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000189/0.0001891, allocations: 7.984 kB / 357.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1787, allocations: 51.28 MB / 408.7 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1002/0.2789, allocations: 95.22 MB / 0.4921 GB, free: 12.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.2792, allocations: 84.8 kB / 0.4922 GB, free: 12.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1988/0.478, allocations: 23.03 MB / 0.5147 GB, free: 91.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.478, allocations: 3 kB / 0.5147 GB, free: 91.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.416e-05/0.4781, allocations: 18.97 kB / 0.5147 GB, free: 91.36 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001328/0.4794, allocations: 1.087 MB / 0.5157 GB, free: 90.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.896e-05/0.4794, allocations: 13.34 kB / 0.5157 GB, free: 90.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003977/0.4798, allocations: 140.3 kB / 0.5159 GB, free: 90.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008977/0.4807, allocations: 0.7131 MB / 0.5166 GB, free: 90.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.322e-05/0.4808, allocations: 65.81 kB / 0.5166 GB, free: 90.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-05/0.4809, allocations: 80.78 kB / 0.5167 GB, free: 90.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.4819, allocations: 0.772 MB / 0.5175 GB, free: 89.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/0.482, allocations: 14.06 kB / 0.5175 GB, free: 89.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.653e-05/0.482, allocations: 34.94 kB / 0.5175 GB, free: 89.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.482, allocations: 26.16 kB / 0.5175 GB, free: 89.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008478/0.4829, allocations: 0.5258 MB / 0.5181 GB, free: 89.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002967/0.4859, allocations: 3.452 MB / 0.5214 GB, free: 86.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.4863, allocations: 234.5 kB / 0.5217 GB, free: 86.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002059/0.4865, allocations: 127.4 kB / 0.5218 GB, free: 86.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.4865, allocations: 3.5 kB / 0.5218 GB, free: 86.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.377e-05/0.4865, allocations: 44.78 kB / 0.5218 GB, free: 86.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.373e-06/0.4866, allocations: 0 / 0.5218 GB, free: 86.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.001556/0.4881, allocations: 1.08 MB / 0.5229 GB, free: 86.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.474e-05/0.4881, allocations: 85.16 kB / 0.523 GB, free: 85.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006343/0.4888, allocations: 0.7034 MB / 0.5236 GB, free: 85.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.4888, allocations: 29.7 kB / 0.5237 GB, free: 85.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000214/0.489, allocations: 497.9 kB / 0.5241 GB, free: 85.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.844e-05/0.4891, allocations: 107.4 kB / 0.5242 GB, free: 85.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.901e-05/0.4891, allocations: 15.94 kB / 0.5243 GB, free: 85.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.467e-05/0.4892, allocations: 375.8 kB / 0.5246 GB, free: 84.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.4894, allocations: 139.9 kB / 0.5248 GB, free: 84.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003117/0.4898, allocations: 421.8 kB / 0.5252 GB, free: 84.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000564/0.4903, allocations: 0.5862 MB / 0.5257 GB, free: 83.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.4903, allocations: 7.906 kB / 0.5257 GB, free: 83.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008285/0.4912, allocations: 0.6346 MB / 0.5264 GB, free: 83.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.4912, allocations: 8.312 kB / 0.5264 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.4912, allocations: 9.969 kB / 0.5264 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001177/0.4913, allocations: 30.48 kB / 0.5264 GB, free: 83.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003837/0.4917, allocations: 152.8 kB / 0.5265 GB, free: 83.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005803/0.4923, allocations: 1.288 MB / 0.5278 GB, free: 82.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003735/0.4927, allocations: 34.53 kB / 0.5278 GB, free: 82.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.4928, allocations: 31.31 kB / 0.5279 GB, free: 82.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002356/0.493, allocations: 247.6 kB / 0.5281 GB, free: 81.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.142e-05/0.4931, allocations: 70.31 kB / 0.5282 GB, free: 81.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000552/0.4936, allocations: 329.2 kB / 0.5285 GB, free: 81.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.4936, allocations: 4 kB / 0.5285 GB, free: 81.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.4937, allocations: 4 kB / 0.5285 GB, free: 81.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4937, allocations: 7.828 kB / 0.5285 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.4949, allocations: 1.092 MB / 0.5296 GB, free: 80.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.4949, allocations: 4 kB / 0.5296 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002503/0.4951, allocations: 68.12 kB / 0.5296 GB, free: 80.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.615e-05/0.4952, allocations: 24.84 kB / 0.5297 GB, free: 80.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.4952, allocations: 8 kB / 0.5297 GB, free: 80.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005097/0.4957, allocations: 1.272 MB / 0.5309 GB, free: 79.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4958, allocations: 7.938 kB / 0.5309 GB, free: 79.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006932/0.4965, allocations: 0.5716 MB / 0.5315 GB, free: 78.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.4966, allocations: 172.2 kB / 0.5316 GB, free: 78.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.113e-05/0.4967, allocations: 11.94 kB / 0.5317 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003176/0.497, allocations: 23.98 kB / 0.5317 GB, free: 78.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.286e-05/0.4971, allocations: 23.97 kB / 0.5317 GB, free: 78.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.4971, allocations: 8 kB / 0.5317 GB, free: 78.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004463/0.4975, allocations: 487 kB / 0.5322 GB, free: 77.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4976, allocations: 0 / 0.5322 GB, free: 77.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006026/0.4982, allocations: 199.9 kB / 0.5324 GB, free: 77.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002927/0.4985, allocations: 286.4 kB / 0.5326 GB, free: 77.31 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006829/0.4992, allocations: 484.6 kB / 0.5331 GB, free: 76.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4992, allocations: 4 kB / 0.5331 GB, free: 76.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.4995, allocations: 238.5 kB / 0.5333 GB, free: 76.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009507/0.5004, allocations: 177.3 kB / 0.5335 GB, free: 76.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.5021, allocations: 1.787 MB / 0.5352 GB, free: 74.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.5024, allocations: 0.9414 MB / 0.5362 GB, free: 73.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.5025, allocations: 55.42 kB / 0.5362 GB, free: 73.54 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5025, allocations: 0 / 0.5362 GB, free: 73.54 MB / 378.7 MB Notification: Performance of Templates: time 0.0121/0.5146, allocations: 14.15 MB / 0.55 GB, free: 59.41 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches