Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008954/0.0008955, allocations: 179.4 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 225.7 MB / 243.2 MB, free: 8.52 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007453/0.0007453, allocations: 92.56 kB / 294.4 MB, free: 9.531 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002215/0.0002216, allocations: 4 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1815, allocations: 50.42 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.007182/0.1887, allocations: 10.78 MB / 415.4 MB, free: 20.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003678/0.1924, allocations: 3.374 MB / 418.7 MB, free: 17.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005178/0.193, allocations: 31.94 kB / 418.8 MB, free: 17.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.194, allocations: 0.5787 MB / 419.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009049/0.1949, allocations: 0.6244 MB / 420 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004377/0.1953, allocations: 359.7 kB / 420.3 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.1965, allocations: 2.273 MB / 422.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00079/0.1973, allocations: 0.8466 MB / 423.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005531/0.1979, allocations: 0.7464 MB / 424.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005568/0.1985, allocations: 0.8434 MB / 425 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001375/0.1986, allocations: 112 kB / 425.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002951/0.1989, allocations: 144 kB / 425.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.1991, allocations: 322.4 kB / 425.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005331/0.1996, allocations: 0.9537 MB / 426.5 MB, free: 9.219 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00132/0.201, allocations: 2.658 MB / 429.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.201, allocations: 0 / 429.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.201, allocations: 0 / 429.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.841e-05/0.201, allocations: 0 / 429.2 MB, free: 6.551 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.002245/0.2032, allocations: 1.837 MB / 431 MB, free: 4.656 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.2033, allocations: 12.03 kB / 431.1 MB, free: 4.645 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006807/0.204, allocations: 286.3 kB / 431.3 MB, free: 4.363 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.2052, allocations: 1.107 MB / 432.4 MB, free: 3.199 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.967e-05/0.2052, allocations: 119.5 kB / 432.6 MB, free: 3.082 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/0.2054, allocations: 163.8 kB / 432.7 MB, free: 2.922 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/0.2073, allocations: 1.5 MB / 434.2 MB, free: 1.359 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.869e-05/0.2074, allocations: 11.83 kB / 434.2 MB, free: 1.348 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.336e-05/0.2075, allocations: 64 kB / 434.3 MB, free: 1.285 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.2075, allocations: 43.98 kB / 434.3 MB, free: 1.242 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.2091, allocations: 1.061 MB / 435.4 MB, free: 180 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006841/0.216, allocations: 6.312 MB / 441.7 MB, free: 9.562 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/0.2174, allocations: 0.6311 MB / 442.3 MB, free: 8.918 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007968/0.2182, allocations: 462.3 kB / 442.8 MB, free: 8.465 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.528e-05/0.2182, allocations: 4.562 kB / 442.8 MB, free: 8.461 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.2182, allocations: 43.12 kB / 442.8 MB, free: 8.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 2.004e-06/0.2183, allocations: 0 / 442.8 MB, free: 8.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.00429/0.2225, allocations: 2.466 MB / 445.3 MB, free: 5.855 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.2226, allocations: 111.5 kB / 445.4 MB, free: 5.719 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/0.2241, allocations: 1.286 MB / 446.7 MB, free: 4.418 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.2242, allocations: 41.7 kB / 446.7 MB, free: 4.371 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005222/0.2247, allocations: 0.8453 MB / 447.6 MB, free: 3.516 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.2249, allocations: 260.3 kB / 447.8 MB, free: 3.258 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.096e-05/0.2249, allocations: 31.94 kB / 447.9 MB, free: 3.227 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2251, allocations: 345.9 kB / 448.2 MB, free: 2.883 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005479/0.2256, allocations: 290.5 kB / 448.5 MB, free: 2.598 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008362/0.2265, allocations: 0.7459 MB / 449.2 MB, free: 1.637 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.2279, allocations: 1.096 MB / 450.3 MB, free: 340 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.2279, allocations: 4 kB / 450.3 MB, free: 336 kB / 314.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002119/0.23, allocations: 1.287 MB / 451.6 MB, free: 15.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.2301, allocations: 16 kB / 451.6 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.2301, allocations: 16 kB / 451.7 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004785/0.2306, allocations: 146.5 kB / 451.8 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007866/0.2314, allocations: 259.6 kB / 452.1 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003335/0.2347, allocations: 4.336 MB / 456.4 MB, free: 9.844 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007402/0.2355, allocations: 64.02 kB / 456.5 MB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.858e-05/0.2355, allocations: 55.98 kB / 456.5 MB, free: 9.727 MB / 330.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.0004794/0.236, allocations: 365.3 kB / 456.9 MB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.2362, allocations: 134.3 kB / 457 MB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.2378, allocations: 0.8725 MB / 457.9 MB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.2378, allocations: 8 kB / 457.9 MB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2378, allocations: 0 / 457.9 MB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.2378, allocations: 7.984 kB / 457.9 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00336/0.2412, allocations: 2.373 MB / 460.3 MB, free: 5.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.2412, allocations: 4 kB / 460.3 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005402/0.2418, allocations: 135.8 kB / 460.4 MB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003938/0.2422, allocations: 134.7 kB / 460.5 MB, free: 5.551 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.209e-05/0.2422, allocations: 20 kB / 460.5 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003497/0.2457, allocations: 4.458 MB / 465 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.2457, allocations: 7.938 kB / 465 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00212/0.2479, allocations: 1.336 MB / 466.3 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003466/0.2482, allocations: 287.3 kB / 466.6 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.2484, allocations: 16 kB / 466.6 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005614/0.2489, allocations: 47.97 kB / 466.7 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.2491, allocations: 68.36 kB / 466.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.756e-05/0.2491, allocations: 23.98 kB / 466.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001148/0.2503, allocations: 0.8664 MB / 467.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2503, allocations: 0 / 467.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001048/0.2513, allocations: 332 kB / 468 MB, free: 13.61 MB / 346.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.0001999/0.2516, allocations: 140.2 kB / 468.1 MB, free: 13.46 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001718/0.2533, allocations: 1.133 MB / 469.2 MB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2533, allocations: 4 kB / 469.2 MB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009276/0.2542, allocations: 0.7187 MB / 470 MB, free: 11.54 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001959/0.2562, allocations: 349.8 kB / 470.3 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004819/0.261, allocations: 3.755 MB / 474.1 MB, free: 7.355 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006884/0.2617, allocations: 1.214 MB / 475.3 MB, free: 6.113 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006041/0.2623, allocations: 175.7 kB / 475.4 MB, free: 5.938 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002133/0.2626, allocations: 99.36 kB / 475.5 MB, free: 5.84 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2626, allocations: 0 / 475.5 MB, free: 5.84 MB / 346.7 MB Notification: Performance of Templates: time 0.02655/0.2891, allocations: 16.64 MB / 492.2 MB, free: 5.398 MB / 362.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