Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001769/0.00177, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.00207/0.00207, allocations: 189.3 kB / 18.19 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.743/1.743, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 43.94 kB / 280.2 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1483, allocations: 46.63 MB / 326.8 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01543/0.1638, allocations: 12 MB / 338.8 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009731/0.1736, allocations: 3.274 MB / 342.1 MB, free: 5.438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003699/0.1775, allocations: 39.88 kB / 342.1 MB, free: 5.398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003377/0.1809, allocations: 0.5671 MB / 342.7 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005254/0.1862, allocations: 0.6361 MB / 343.3 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.1878, allocations: 351.7 kB / 343.6 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004879/0.1927, allocations: 2.402 MB / 346 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002024/0.1948, allocations: 1.001 MB / 347 MB, free: 396 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002573/0.1974, allocations: 0.9065 MB / 347.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001917/0.1993, allocations: 0.98 MB / 348.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003648/0.1997, allocations: 228 kB / 349.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007517/0.2004, allocations: 268 kB / 349.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004083/0.2009, allocations: 466.3 kB / 349.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.2024, allocations: 1.077 MB / 350.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003774/0.2061, allocations: 2.795 MB / 353.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.687e-06/0.2062, allocations: 0 / 353.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.2062, allocations: 4 kB / 353.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.79e-05/0.2063, allocations: 0 / 353.7 MB, free: 9.66 MB / 302.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.006269/0.2125, allocations: 2.156 MB / 355.9 MB, free: 7.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.509e-05/0.2126, allocations: 8.031 kB / 355.9 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.2138, allocations: 282.4 kB / 356.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002469/0.2163, allocations: 1.103 MB / 357.3 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/0.2165, allocations: 111.5 kB / 357.4 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002626/0.2167, allocations: 171.8 kB / 357.6 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003294/0.22, allocations: 1.5 MB / 359.1 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.565e-05/0.2201, allocations: 7.906 kB / 359.1 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001481/0.2203, allocations: 64 kB / 359.1 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.465e-05/0.2203, allocations: 40 kB / 359.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002538/0.2229, allocations: 1.045 MB / 360.2 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01214/0.235, allocations: 6.308 MB / 366.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.2369, allocations: 0.6112 MB / 367.1 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009954/0.2379, allocations: 466.3 kB / 367.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.064e-05/0.238, allocations: 12.55 kB / 367.6 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.874e-05/0.238, allocations: 39.12 kB / 367.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.976e-06/0.2381, allocations: 0 / 367.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.006759/0.2448, allocations: 2.364 MB / 370 MB, free: 8.801 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.245, allocations: 119.5 kB / 370.1 MB, free: 8.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002918/0.2479, allocations: 1.306 MB / 371.4 MB, free: 7.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.147e-05/0.248, allocations: 37.7 kB / 371.5 MB, free: 7.293 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008469/0.2489, allocations: 0.8414 MB / 372.3 MB, free: 6.441 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002623/0.2492, allocations: 264.2 kB / 372.6 MB, free: 6.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004266/0.2496, allocations: 214.7 kB / 372.8 MB, free: 5.961 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002315/0.2499, allocations: 341.9 kB / 373.1 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007516/0.2506, allocations: 286.5 kB / 373.4 MB, free: 5.344 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001063/0.2517, allocations: 0.7381 MB / 374.1 MB, free: 4.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/0.2535, allocations: 1.084 MB / 375.2 MB, free: 3.094 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-05/0.2535, allocations: 7.938 kB / 375.2 MB, free: 3.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003115/0.2566, allocations: 1.26 MB / 376.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.764e-05/0.2568, allocations: 19.97 kB / 376.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.063e-05/0.2568, allocations: 16 kB / 376.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006788/0.2575, allocations: 142.4 kB / 376.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008706/0.2584, allocations: 251.6 kB / 376.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3128/0.5713, allocations: 4.633 MB / 381.5 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001649/0.573, allocations: 58.5 kB / 381.6 MB, free: 47.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.5731, allocations: 55.75 kB / 381.6 MB, free: 47.82 MB / 318.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.0009722/0.5741, allocations: 355.5 kB / 382 MB, free: 47.7 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003043/0.5744, allocations: 136 kB / 382.1 MB, free: 47.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002437/0.5768, allocations: 0.8365 MB / 383 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-05/0.5769, allocations: 6.781 kB / 383 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.5769, allocations: 1.75 kB / 383 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.5769, allocations: 7.953 kB / 383 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004654/0.5815, allocations: 2.333 MB / 385.3 MB, free: 46.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.5816, allocations: 4.375 kB / 385.3 MB, free: 46.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006064/0.5822, allocations: 127.7 kB / 385.4 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004672/0.5827, allocations: 134.2 kB / 385.6 MB, free: 46.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.05e-05/0.5827, allocations: 17.45 kB / 385.6 MB, free: 46.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003894/0.5866, allocations: 4.788 MB / 390.4 MB, free: 41.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.5866, allocations: 7.469 kB / 390.4 MB, free: 41.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.5894, allocations: 1.299 MB / 391.7 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006068/0.5901, allocations: 280 kB / 392 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001651/0.5902, allocations: 21.94 kB / 392 MB, free: 41.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006384/0.5909, allocations: 38.95 kB / 392 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.5911, allocations: 65.56 kB / 392.1 MB, free: 41.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.153e-05/0.5911, allocations: 22.62 kB / 392.1 MB, free: 41.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001708/0.5928, allocations: 0.8805 MB / 393 MB, free: 40.72 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5928, allocations: 0 / 393 MB, free: 40.72 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001729/0.5946, allocations: 326.6 kB / 393.3 MB, free: 40.7 MB / 318.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.0002929/0.5949, allocations: 141.4 kB / 393.4 MB, free: 40.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002521/0.5974, allocations: 1.144 MB / 394.6 MB, free: 39.96 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.5974, allocations: 1.594 kB / 394.6 MB, free: 39.96 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001293/0.5987, allocations: 0.706 MB / 395.3 MB, free: 39.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001896/0.6006, allocations: 360.8 kB / 395.6 MB, free: 39.36 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006782/0.6074, allocations: 3.596 MB / 399.2 MB, free: 37.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009864/0.6084, allocations: 1.211 MB / 400.4 MB, free: 36.35 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008856/0.6093, allocations: 172.9 kB / 400.6 MB, free: 36.3 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002415/0.6096, allocations: 93.61 kB / 400.7 MB, free: 36.29 MB / 318.1 MB Notification: Performance of SimCode: time 1.312e-06/0.6096, allocations: 0 / 400.7 MB, free: 36.29 MB / 318.1 MB Notification: Performance of Templates: time 0.0303/0.6399, allocations: 17.51 MB / 418.2 MB, free: 22.95 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches