Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 221.3 MB / 235.5 MB, free: 2.871 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008226/0.0008226, allocations: 92.05 kB / 286.5 MB, free: 148 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.186e-05/2.188e-05, allocations: 4 kB / 343.8 MB, free: 4.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08138/0.08142, allocations: 50.41 MB / 394.2 MB, free: 1.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2843/0.3658, allocations: 95.92 MB / 490.2 MB, free: 7.559 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/0.366, allocations: 83.78 kB / 490.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1156/0.4816, allocations: 44.72 MB / 0.5224 GB, free: 10.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4817, allocations: 448 / 0.5224 GB, free: 10.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.018e-05/0.4817, allocations: 39.98 kB / 0.5225 GB, free: 10.4 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002488/0.4842, allocations: 1.6 MB / 0.524 GB, free: 8.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.4843, allocations: 8.031 kB / 0.524 GB, free: 8.742 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008538/0.4851, allocations: 285.5 kB / 0.5243 GB, free: 8.461 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/0.4873, allocations: 1.216 MB / 0.5255 GB, free: 7.188 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.336e-05/0.4874, allocations: 111.1 kB / 0.5256 GB, free: 7.078 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002118/0.4876, allocations: 159.9 kB / 0.5258 GB, free: 6.922 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002297/0.4899, allocations: 1.426 MB / 0.5272 GB, free: 5.434 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.636e-05/0.49, allocations: 15.83 kB / 0.5272 GB, free: 5.418 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.4901, allocations: 64 kB / 0.5272 GB, free: 5.355 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.683e-05/0.4901, allocations: 36 kB / 0.5273 GB, free: 5.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.4918, allocations: 0.9675 MB / 0.5282 GB, free: 4.348 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00797/0.4998, allocations: 6.412 MB / 0.5345 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.501, allocations: 0.5647 MB / 0.535 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006957/0.5017, allocations: 419.2 kB / 0.5354 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.757e-05/0.5018, allocations: 8.562 kB / 0.5354 GB, free: 12.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.5018, allocations: 35.12 kB / 0.5355 GB, free: 12.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=66): time 2.275e-06/0.5018, allocations: 4 kB / 0.5355 GB, free: 12.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=72): time 0.003099/0.5049, allocations: 1.795 MB / 0.5372 GB, free: 10.72 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.505, allocations: 111.6 kB / 0.5373 GB, free: 10.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001381/0.5064, allocations: 1.086 MB / 0.5384 GB, free: 9.488 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.586e-05/0.5065, allocations: 41.7 kB / 0.5384 GB, free: 9.441 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005386/0.507, allocations: 0.8608 MB / 0.5393 GB, free: 8.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.5072, allocations: 260.2 kB / 0.5395 GB, free: 8.312 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.313e-05/0.5072, allocations: 28 kB / 0.5395 GB, free: 8.285 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.5073, allocations: 349.9 kB / 0.5399 GB, free: 7.938 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004503/0.5078, allocations: 246.6 kB / 0.5401 GB, free: 7.695 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006572/0.5085, allocations: 0.7071 MB / 0.5408 GB, free: 6.777 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005613/0.509, allocations: 373.9 kB / 0.5412 GB, free: 6.414 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.5091, allocations: 4 kB / 0.5412 GB, free: 6.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001936/0.511, allocations: 1.216 MB / 0.5423 GB, free: 5.172 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.511, allocations: 9.562 kB / 0.5424 GB, free: 5.164 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.5111, allocations: 16.59 kB / 0.5424 GB, free: 5.148 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000377/0.5114, allocations: 122.5 kB / 0.5425 GB, free: 5.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008704/0.5123, allocations: 259.6 kB / 0.5427 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003004/0.5153, allocations: 4.219 MB / 0.5469 GB, free: 144 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.5164, allocations: 67.83 kB / 0.5469 GB, free: 76 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.036e-05/0.5165, allocations: 52 kB / 0.547 GB, free: 24 kB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.1913/0.7078, allocations: 176.4 kB / 0.5471 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000337/0.7081, allocations: 139.6 kB / 0.5473 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.7099, allocations: 0.7802 MB / 0.548 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.71, allocations: 11.8 kB / 0.548 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.71, allocations: 3.609 kB / 0.548 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.71, allocations: 5.281 kB / 0.5481 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003525/0.7135, allocations: 2.256 MB / 0.5503 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.315e-06/0.7135, allocations: 5.109 kB / 0.5503 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005679/0.7141, allocations: 136.3 kB / 0.5504 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000338/0.7145, allocations: 117.2 kB / 0.5505 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.325e-05/0.7145, allocations: 17.66 kB / 0.5505 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002561/0.7171, allocations: 4.331 MB / 0.5547 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.7171, allocations: 8.812 kB / 0.5548 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.7188, allocations: 1.433 MB / 0.5562 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004301/0.7193, allocations: 286 kB / 0.5564 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.7194, allocations: 16.84 kB / 0.5564 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006156/0.7201, allocations: 48.95 kB / 0.5565 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.7202, allocations: 65.41 kB / 0.5566 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.7202, allocations: 21.55 kB / 0.5566 GB, free: 102.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001093/0.7213, allocations: 0.8185 MB / 0.5574 GB, free: 102.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7213, allocations: 1 kB / 0.5574 GB, free: 102.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001236/0.7226, allocations: 376.5 kB / 0.5577 GB, free: 102.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004917/0.7231, allocations: 368.2 kB / 0.5581 GB, free: 102.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.7245, allocations: 1.061 MB / 0.5591 GB, free: 102.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.7245, allocations: 1 kB / 0.5591 GB, free: 102.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007087/0.7252, allocations: 0.6765 MB / 0.5598 GB, free: 101.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.7266, allocations: 334 kB / 0.5601 GB, free: 101.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003953/0.7306, allocations: 2.311 MB / 0.5624 GB, free: 101.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007261/0.7313, allocations: 1.247 MB / 0.5636 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007365/0.732, allocations: 183.6 kB / 0.5638 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.7323, allocations: 91 kB / 0.5638 GB, free: 100.4 MB / 426.7 MB Notification: Performance of SimCode: time 5.81e-07/0.7323, allocations: 1.219 kB / 0.5638 GB, free: 100.4 MB / 426.7 MB Notification: Performance of Templates: time 0.0303/0.7626, allocations: 19.62 MB / 0.583 GB, free: 99.25 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches