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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 112.6 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 191.9 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 43.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3071, allocations: 49.44 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.02016/0.3273, allocations: 12.15 MB / 412.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008721/0.3361, allocations: 3.28 MB / 416.2 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002594/0.3387, allocations: 39.88 kB / 416.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003154/0.342, allocations: 0.6672 MB / 416.9 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004053/0.3461, allocations: 0.7286 MB / 417.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001683/0.3478, allocations: 391.6 kB / 418 MB, free: 7.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005217/0.353, allocations: 2.416 MB / 420.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002018/0.3551, allocations: 0.9931 MB / 421.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001766/0.3568, allocations: 0.9066 MB / 422.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002214/0.3591, allocations: 0.98 MB / 423.3 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006215/0.3597, allocations: 228 kB / 423.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009697/0.3607, allocations: 271.9 kB / 423.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004904/0.3612, allocations: 454.3 kB / 424.2 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001309/0.3625, allocations: 1.085 MB / 425.3 MB, free: 192 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003739/0.3663, allocations: 2.841 MB / 428.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.3663, allocations: 0 / 428.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3663, allocations: 0 / 428.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.617e-05/0.3664, allocations: 0 / 428.1 MB, free: 13.33 MB / 350.1 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.005523/0.372, allocations: 2.205 MB / 430.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/0.372, allocations: 12.03 kB / 430.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001424/0.3735, allocations: 291.5 kB / 430.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003051/0.3765, allocations: 1.139 MB / 431.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.3767, allocations: 111.5 kB / 431.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003482/0.377, allocations: 159.9 kB / 432 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004105/0.3812, allocations: 1.508 MB / 433.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.2e-05/0.3813, allocations: 7.953 kB / 433.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000193/0.3815, allocations: 71.98 kB / 433.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-05/0.3815, allocations: 36 kB / 433.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002881/0.3844, allocations: 1.049 MB / 434.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01204/0.3965, allocations: 6.251 MB / 441 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/0.3987, allocations: 0.6088 MB / 441.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00131/0.4, allocations: 463.8 kB / 442 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.619e-05/0.4001, allocations: 12.62 kB / 442 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.4001, allocations: 43.12 kB / 442.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.434e-06/0.4001, allocations: 0 / 442.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.007326/0.4074, allocations: 2.395 MB / 444.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.031e-05/0.4076, allocations: 111.5 kB / 444.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002559/0.4101, allocations: 1.302 MB / 445.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.655e-05/0.4102, allocations: 41.7 kB / 445.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008541/0.4111, allocations: 0.8671 MB / 446.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002585/0.4113, allocations: 281.7 kB / 447.1 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003916/0.4117, allocations: 202.8 kB / 447.3 MB, free: 9.555 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.4119, allocations: 349.9 kB / 447.6 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008307/0.4128, allocations: 282.5 kB / 447.9 MB, free: 8.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.414, allocations: 0.7421 MB / 448.6 MB, free: 7.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002212/0.4162, allocations: 1.08 MB / 449.7 MB, free: 6.684 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.4163, allocations: 11.88 kB / 449.7 MB, free: 6.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003707/0.42, allocations: 1.268 MB / 451 MB, free: 5.387 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.42, allocations: 12 kB / 451 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.791e-05/0.4201, allocations: 19.98 kB / 451 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007122/0.4208, allocations: 134.9 kB / 451.1 MB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.4222, allocations: 259.6 kB / 451.4 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005576/0.4278, allocations: 4.646 MB / 456 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.4295, allocations: 59.88 kB / 456.1 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/0.4296, allocations: 56.05 kB / 456.2 MB, free: 15.78 MB / 382.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008585/0.4305, allocations: 357.4 kB / 456.5 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/0.4308, allocations: 143.1 kB / 456.6 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002713/0.4335, allocations: 0.8295 MB / 457.5 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.4336, allocations: 7.938 kB / 457.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.4336, allocations: 4 kB / 457.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.4336, allocations: 3.984 kB / 457.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005669/0.4393, allocations: 2.334 MB / 459.8 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.4393, allocations: 4.125 kB / 459.8 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009053/0.4402, allocations: 132.3 kB / 460 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007028/0.441, allocations: 134.4 kB / 460.1 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.629e-05/0.441, allocations: 20 kB / 460.1 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005661/0.4467, allocations: 4.779 MB / 464.9 MB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.236e-06/0.4468, allocations: 12.05 kB / 464.9 MB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003315/0.4501, allocations: 1.301 MB / 466.2 MB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005706/0.4507, allocations: 296.2 kB / 466.5 MB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002306/0.4509, allocations: 16 kB / 466.5 MB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006707/0.4516, allocations: 39.95 kB / 466.5 MB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.4517, allocations: 68.36 kB / 466.6 MB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.4518, allocations: 24 kB / 466.6 MB, free: 4.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001422/0.4532, allocations: 0.8742 MB / 467.5 MB, free: 3.754 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4532, allocations: 0 / 467.5 MB, free: 3.754 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001293/0.4545, allocations: 335.9 kB / 467.8 MB, free: 3.426 MB / 382.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003073/0.4548, allocations: 147 kB / 468 MB, free: 3.273 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002363/0.4572, allocations: 1.128 MB / 469.1 MB, free: 2.102 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.4572, allocations: 0 / 469.1 MB, free: 2.102 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.4583, allocations: 0.7156 MB / 469.8 MB, free: 1.352 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.4601, allocations: 368.3 kB / 470.2 MB, free: 1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00605/0.4662, allocations: 2.945 MB / 473.1 MB, free: 13.97 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001005/0.4672, allocations: 1.214 MB / 474.3 MB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007033/0.4679, allocations: 179.5 kB / 474.5 MB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/0.4682, allocations: 87.42 kB / 474.6 MB, free: 12.46 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4682, allocations: 0 / 474.6 MB, free: 12.46 MB / 398.1 MB Notification: Performance of Templates: time 0.03097/0.4992, allocations: 17.96 MB / 492.6 MB, free: 10.7 MB / 414.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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