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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 183 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.178/1.178, allocations: 205.1 MB / 223.7 MB, free: 8.5 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008862/0.0008862, allocations: 92.97 kB / 271.2 MB, free: 8.465 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00073/0.00073, allocations: 47.92 kB / 327.2 MB, free: 340 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1846, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008924/0.1936, allocations: 11.99 MB / 385.8 MB, free: 36.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004344/0.1979, allocations: 3.281 MB / 389.1 MB, free: 33.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005826/0.1986, allocations: 39.41 kB / 389.1 MB, free: 33.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.1997, allocations: 0.5717 MB / 389.7 MB, free: 33.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009471/0.2007, allocations: 0.6265 MB / 390.3 MB, free: 32.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004516/0.2012, allocations: 355.3 kB / 390.7 MB, free: 32.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.2025, allocations: 2.313 MB / 393 MB, free: 30.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007443/0.2033, allocations: 0.8671 MB / 393.9 MB, free: 29.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005546/0.2038, allocations: 0.8127 MB / 394.7 MB, free: 28.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00057/0.2044, allocations: 0.9254 MB / 395.6 MB, free: 27.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001587/0.2046, allocations: 140 kB / 395.7 MB, free: 27.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000304/0.2049, allocations: 176 kB / 395.9 MB, free: 27.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.2051, allocations: 370.3 kB / 396.3 MB, free: 26.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005305/0.2056, allocations: 0.9872 MB / 397.3 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001287/0.2069, allocations: 2.725 MB / 400 MB, free: 23.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2069, allocations: 0 / 400 MB, free: 23.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.2069, allocations: 4 kB / 400 MB, free: 23.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.2069, allocations: 0 / 400 MB, free: 23.23 MB / 298.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.002605/0.2095, allocations: 2.16 MB / 402.2 MB, free: 21.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.2096, allocations: 12.03 kB / 402.2 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006808/0.2103, allocations: 278.4 kB / 402.4 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.2114, allocations: 1.107 MB / 403.5 MB, free: 19.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.604e-05/0.2115, allocations: 115.5 kB / 403.7 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.2117, allocations: 163.8 kB / 403.8 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001783/0.2134, allocations: 1.504 MB / 405.3 MB, free: 17.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.854e-05/0.2135, allocations: 15.83 kB / 405.3 MB, free: 17.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.39e-05/0.2136, allocations: 64 kB / 405.4 MB, free: 17.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/0.2136, allocations: 40 kB / 405.4 MB, free: 17.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.2152, allocations: 1.049 MB / 406.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0052/0.2204, allocations: 6.284 MB / 412.8 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.2216, allocations: 0.6083 MB / 413.4 MB, free: 9.352 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006964/0.2223, allocations: 466.2 kB / 413.8 MB, free: 8.895 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.78e-05/0.2223, allocations: 4.562 kB / 413.8 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.635e-05/0.2223, allocations: 51 kB / 413.9 MB, free: 8.832 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 1.733e-06/0.2223, allocations: 0 / 413.9 MB, free: 8.832 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.003537/0.2259, allocations: 2.368 MB / 416.3 MB, free: 6.371 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.2259, allocations: 111.5 kB / 416.4 MB, free: 6.234 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.2271, allocations: 1.31 MB / 417.7 MB, free: 4.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.2272, allocations: 37.7 kB / 417.7 MB, free: 4.867 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003257/0.2275, allocations: 0.8492 MB / 418.6 MB, free: 4.008 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.2276, allocations: 260.3 kB / 418.8 MB, free: 3.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.2278, allocations: 206.7 kB / 419 MB, free: 3.539 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.5e-05/0.2279, allocations: 345.9 kB / 419.4 MB, free: 3.195 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004651/0.2283, allocations: 286.5 kB / 419.6 MB, free: 2.918 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005868/0.2289, allocations: 0.742 MB / 420.4 MB, free: 1.961 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.23, allocations: 1.092 MB / 421.5 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.23, allocations: 4 kB / 421.5 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001938/0.232, allocations: 1.26 MB / 422.7 MB, free: 15.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.232, allocations: 12.09 kB / 422.7 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.232, allocations: 16 kB / 422.8 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004681/0.2325, allocations: 134.6 kB / 422.9 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007561/0.2333, allocations: 255.6 kB / 423.1 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003358/0.2366, allocations: 4.277 MB / 427.4 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007193/0.2374, allocations: 59.88 kB / 427.5 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-05/0.2374, allocations: 52 kB / 427.5 MB, free: 10.18 MB / 314.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 () * 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.0004525/0.2379, allocations: 357.4 kB / 427.9 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/0.2381, allocations: 138.3 kB / 428 MB, free: 9.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.2397, allocations: 0.8295 MB / 428.8 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.2397, allocations: 8 kB / 428.8 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2397, allocations: 3.984 kB / 428.9 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2397, allocations: 0 / 428.9 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003426/0.2432, allocations: 2.334 MB / 431.2 MB, free: 6.359 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.2432, allocations: 4 kB / 431.2 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005255/0.2437, allocations: 132.3 kB / 431.3 MB, free: 6.227 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004076/0.2441, allocations: 130.4 kB / 431.4 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.334e-05/0.2442, allocations: 27.98 kB / 431.5 MB, free: 6.062 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00367/0.2479, allocations: 4.395 MB / 435.9 MB, free: 1.262 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.2479, allocations: 4 kB / 435.9 MB, free: 1.258 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01387/0.2618, allocations: 10.25 MB / 446.1 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/0.2622, allocations: 279.3 kB / 446.4 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.2623, allocations: 23.98 kB / 446.4 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005681/0.2629, allocations: 40.03 kB / 446.5 MB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.263, allocations: 60.36 kB / 446.5 MB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/0.263, allocations: 20 kB / 446.5 MB, free: 5.934 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001098/0.2642, allocations: 0.8858 MB / 447.4 MB, free: 5.047 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.2642, allocations: 4 kB / 447.4 MB, free: 5.043 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001358/0.2655, allocations: 472 kB / 447.9 MB, free: 4.582 MB / 330.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 () * 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.0002121/0.2657, allocations: 135.2 kB / 448 MB, free: 4.438 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.2675, allocations: 1.109 MB / 449.1 MB, free: 3.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.2675, allocations: 0 / 449.1 MB, free: 3.293 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009338/0.2684, allocations: 0.706 MB / 449.8 MB, free: 2.547 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.2699, allocations: 342.5 kB / 450.2 MB, free: 2.219 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005783/0.2757, allocations: 4.42 MB / 454.6 MB, free: 13.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007383/0.2765, allocations: 1.233 MB / 455.8 MB, free: 12.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006844/0.2772, allocations: 179.5 kB / 456 MB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.2774, allocations: 95.41 kB / 456.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2774, allocations: 0 / 456.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of Templates: time 0.02783/0.3053, allocations: 19.3 MB / 475.4 MB, free: 8.836 MB / 362.7 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@2/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