Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001591/0.001591, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008681/0.0008681, allocations: 97.86 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.822e-05/1.82e-05, allocations: 4 kB / 343.7 MB, free: 8.266 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08948/0.08951, allocations: 51.48 MB / 395.2 MB, free: 4.738 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2798/0.3694, allocations: 95.8 MB / 491 MB, free: 13.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.3696, allocations: 75.33 kB / 491 MB, free: 13.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1001/0.4697, allocations: 40.27 MB / 0.5189 GB, free: 10.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.178e-06/0.4698, allocations: 0 / 0.5189 GB, free: 10.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.341e-05/0.4699, allocations: 39.94 kB / 0.5189 GB, free: 10.17 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002885/0.4728, allocations: 1.549 MB / 0.5204 GB, free: 8.562 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.4728, allocations: 8.031 kB / 0.5204 GB, free: 8.555 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008737/0.4737, allocations: 261.6 kB / 0.5207 GB, free: 8.297 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001977/0.4757, allocations: 1.094 MB / 0.5217 GB, free: 7.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.442e-05/0.4758, allocations: 48 kB / 0.5218 GB, free: 7.113 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/0.476, allocations: 103.9 kB / 0.5219 GB, free: 7.012 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00153/0.4775, allocations: 0.8145 MB / 0.5227 GB, free: 6.195 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/0.4796, allocations: 1.202 MB / 0.5239 GB, free: 4.922 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.236e-05/0.4797, allocations: 19.89 kB / 0.5239 GB, free: 4.902 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.064e-05/0.4798, allocations: 0 / 0.5239 GB, free: 4.902 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.634e-05/0.4798, allocations: 43.94 kB / 0.5239 GB, free: 4.859 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007337/0.4872, allocations: 6.357 MB / 0.5301 GB, free: 14.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005273/0.4877, allocations: 335.4 kB / 0.5304 GB, free: 13.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.488, allocations: 191.6 kB / 0.5306 GB, free: 13.63 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.488, allocations: 4.438 kB / 0.5306 GB, free: 13.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003619/0.4884, allocations: 240.8 kB / 0.5309 GB, free: 13.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 1.953e-06/0.4884, allocations: 0 / 0.5309 GB, free: 13.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=56): time 0.002124/0.4906, allocations: 1.51 MB / 0.5323 GB, free: 11.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/0.4906, allocations: 192.4 kB / 0.5325 GB, free: 11.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.4918, allocations: 0.8438 MB / 0.5333 GB, free: 10.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.4918, allocations: 29.7 kB / 0.5334 GB, free: 10.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005883/0.4924, allocations: 0.8781 MB / 0.5342 GB, free: 9.785 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.4926, allocations: 197.2 kB / 0.5344 GB, free: 9.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-05/0.4926, allocations: 4.031 kB / 0.5344 GB, free: 9.586 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.4927, allocations: 349.9 kB / 0.5348 GB, free: 9.238 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003156/0.493, allocations: 190.6 kB / 0.5349 GB, free: 9.051 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006552/0.4937, allocations: 0.7501 MB / 0.5357 GB, free: 8.023 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004816/0.4942, allocations: 329.8 kB / 0.536 GB, free: 7.699 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.4942, allocations: 4 kB / 0.536 GB, free: 7.695 MB / 410.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001497/0.4957, allocations: 0.9528 MB / 0.5369 GB, free: 6.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.138e-05/0.4958, allocations: 45.64 kB / 0.537 GB, free: 6.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.4958, allocations: 20 kB / 0.537 GB, free: 6.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001759/0.496, allocations: 66.33 kB / 0.537 GB, free: 6.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007869/0.4968, allocations: 271.6 kB / 0.5373 GB, free: 6.324 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/0.4984, allocations: 2.477 MB / 0.5397 GB, free: 3.617 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007261/0.4991, allocations: 51.94 kB / 0.5398 GB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.407e-05/0.4992, allocations: 60 kB / 0.5398 GB, free: 3.508 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.4994, allocations: 157.6 kB / 0.54 GB, free: 3.348 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.4995, allocations: 122.5 kB / 0.5401 GB, free: 3.227 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007711/0.5003, allocations: 460.3 kB / 0.5405 GB, free: 2.762 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.5003, allocations: 8 kB / 0.5405 GB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.5003, allocations: 0 / 0.5405 GB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.5003, allocations: 3.984 kB / 0.5405 GB, free: 2.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.5025, allocations: 1.66 MB / 0.5422 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.5025, allocations: 4 kB / 0.5422 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004387/0.5029, allocations: 116.3 kB / 0.5423 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001357/0.5031, allocations: 41.7 kB / 0.5423 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.5031, allocations: 8 kB / 0.5423 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.5046, allocations: 2.446 MB / 0.5447 GB, free: 14.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.5047, allocations: 7.938 kB / 0.5447 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.5057, allocations: 1.008 MB / 0.5457 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002926/0.506, allocations: 231.7 kB / 0.5459 GB, free: 12.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001307/0.5062, allocations: 8 kB / 0.5459 GB, free: 12.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004806/0.5067, allocations: 27.97 kB / 0.546 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.591e-05/0.5068, allocations: 55.83 kB / 0.546 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.371e-05/0.5068, allocations: 20 kB / 0.546 GB, free: 12.63 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007995/0.5076, allocations: 0.6149 MB / 0.5466 GB, free: 12.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5076, allocations: 0 / 0.5466 GB, free: 12.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009615/0.5086, allocations: 276 kB / 0.5469 GB, free: 11.74 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003742/0.509, allocations: 298.6 kB / 0.5472 GB, free: 11.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.51, allocations: 0.8087 MB / 0.548 GB, free: 10.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.51, allocations: 0 / 0.548 GB, free: 10.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005201/0.5106, allocations: 429.3 kB / 0.5484 GB, free: 10.17 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.5117, allocations: 275.8 kB / 0.5486 GB, free: 9.902 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.5148, allocations: 1.855 MB / 0.5505 GB, free: 7.961 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008126/0.5156, allocations: 1.205 MB / 0.5516 GB, free: 6.727 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006133/0.5162, allocations: 158.2 kB / 0.5518 GB, free: 6.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.5164, allocations: 79.42 kB / 0.5519 GB, free: 6.492 MB / 426.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5164, allocations: 0 / 0.5519 GB, free: 6.492 MB / 426.7 MB Notification: Performance of Templates: time 0.0219/0.5383, allocations: 12.21 MB / 0.5638 GB, free: 10.39 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches