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_Start.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_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 179 kB / 16.71 MB, free: 5.062 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.212/1.212, allocations: 225.7 MB / 243.2 MB, free: 8.5 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.0007176/0.0007177, allocations: 90.02 kB / 294.4 MB, free: 9.527 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.0002891, allocations: 11.94 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1981, allocations: 50.4 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.004474/0.2026, allocations: 6.29 MB / 410.9 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002439/0.2051, allocations: 2.46 MB / 413.3 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003388/0.2055, allocations: 16 kB / 413.3 MB, free: 22.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008612/0.2063, allocations: 445.7 kB / 413.8 MB, free: 22.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004968/0.2068, allocations: 333.6 kB / 414.1 MB, free: 21.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002584/0.2071, allocations: 171.9 kB / 414.3 MB, free: 21.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006462/0.2078, allocations: 1.152 MB / 415.4 MB, free: 20.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004501/0.2082, allocations: 434.7 kB / 415.8 MB, free: 19.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003001/0.2085, allocations: 390.1 kB / 416.2 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.2088, allocations: 425.8 kB / 416.6 MB, free: 19.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.857e-05/0.2089, allocations: 52 kB / 416.7 MB, free: 19.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001852/0.2091, allocations: 95.97 kB / 416.8 MB, free: 19.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.713e-05/0.2092, allocations: 159.1 kB / 416.9 MB, free: 18.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003075/0.2095, allocations: 0.4991 MB / 417.4 MB, free: 18.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007655/0.2103, allocations: 1.339 MB / 418.8 MB, free: 17.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2103, allocations: 0 / 418.8 MB, free: 17.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2103, allocations: 0 / 418.8 MB, free: 17.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.2103, allocations: 0 / 418.8 MB, free: 17.02 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001244/0.2116, allocations: 1.091 MB / 419.9 MB, free: 15.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.2116, allocations: 15.97 kB / 419.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000376/0.212, allocations: 151.6 kB / 420 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006602/0.2126, allocations: 0.63 MB / 420.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.086e-05/0.2127, allocations: 58.38 kB / 420.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.868e-05/0.2128, allocations: 88.22 kB / 420.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009918/0.2138, allocations: 0.7793 MB / 421.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.2138, allocations: 3.938 kB / 421.6 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.863e-05/0.2139, allocations: 32 kB / 421.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.2139, allocations: 20 kB / 421.6 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007864/0.2147, allocations: 0.527 MB / 422.2 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002791/0.2175, allocations: 3.415 MB / 425.6 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/0.2179, allocations: 234.5 kB / 425.8 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/0.2181, allocations: 120.8 kB / 425.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.2181, allocations: 4 kB / 425.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/0.2181, allocations: 34.56 kB / 426 MB, free: 9.473 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.373e-06/0.2181, allocations: 0 / 426 MB, free: 9.473 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001505/0.2196, allocations: 1.081 MB / 427.1 MB, free: 8.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.48e-05/0.2197, allocations: 81.34 kB / 427.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006493/0.2203, allocations: 0.7309 MB / 427.9 MB, free: 7.484 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.2203, allocations: 29.7 kB / 427.9 MB, free: 7.449 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.2205, allocations: 0.4904 MB / 428.4 MB, free: 6.949 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.846e-05/0.2206, allocations: 110.5 kB / 428.5 MB, free: 6.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.568e-05/0.2206, allocations: 16 kB / 428.5 MB, free: 6.824 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.337e-05/0.2207, allocations: 378.8 kB / 428.9 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.2209, allocations: 133.2 kB / 429 MB, free: 6.312 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002958/0.2213, allocations: 422.2 kB / 429.4 MB, free: 5.766 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005446/0.2218, allocations: 0.5895 MB / 430 MB, free: 5.043 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2218, allocations: 4 kB / 430 MB, free: 5.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007806/0.2226, allocations: 0.6186 MB / 430.6 MB, free: 4.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.2226, allocations: 8 kB / 430.6 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.2226, allocations: 12 kB / 430.6 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001008/0.2227, allocations: 33.25 kB / 430.7 MB, free: 4.355 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/0.2231, allocations: 147.8 kB / 430.8 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005724/0.2237, allocations: 1.288 MB / 432.1 MB, free: 2.793 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003541/0.2241, allocations: 35.89 kB / 432.1 MB, free: 2.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/0.2241, allocations: 28 kB / 432.2 MB, free: 2.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002069/0.2243, allocations: 255 kB / 432.4 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.657e-05/0.2244, allocations: 71.16 kB / 432.5 MB, free: 2.402 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000495/0.2249, allocations: 332.5 kB / 432.8 MB, free: 2.066 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.2249, allocations: 4 kB / 432.8 MB, free: 2.062 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2249, allocations: 3.938 kB / 432.8 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2249, allocations: 3.984 kB / 432.8 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.2261, allocations: 1.117 MB / 433.9 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2261, allocations: 4 kB / 434 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.2263, allocations: 59.91 kB / 434 MB, free: 0.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.153e-05/0.2264, allocations: 20.84 kB / 434 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.2264, allocations: 8 kB / 434 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000626/0.227, allocations: 1.272 MB / 435.3 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.227, allocations: 7.922 kB / 435.3 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007622/0.2278, allocations: 0.5729 MB / 435.9 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.228, allocations: 176.2 kB / 436.1 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.357e-05/0.2281, allocations: 8 kB / 436.1 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002938/0.2284, allocations: 23.97 kB / 436.1 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.2284, allocations: 27.91 kB / 436.1 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-05/0.2285, allocations: 11.94 kB / 436.1 MB, free: 14.47 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005638/0.229, allocations: 0.4951 MB / 436.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.229, allocations: 0 / 436.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005125/0.2296, allocations: 164 kB / 436.8 MB, free: 13.82 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001673/0.2297, allocations: 131.2 kB / 436.9 MB, free: 13.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007298/0.2305, allocations: 481.7 kB / 437.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2305, allocations: 0 / 437.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003301/0.2308, allocations: 244.7 kB / 437.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009596/0.2318, allocations: 179.7 kB / 437.8 MB, free: 12.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.2338, allocations: 1.842 MB / 439.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004269/0.2342, allocations: 0.9335 MB / 440.6 MB, free: 9.918 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003009/0.2345, allocations: 90.02 kB / 440.7 MB, free: 9.828 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.203e-05/0.2346, allocations: 55.44 kB / 440.7 MB, free: 9.773 MB / 314.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2346, allocations: 0 / 440.7 MB, free: 9.773 MB / 314.7 MB Notification: Performance of Templates: time 0.0127/0.2473, allocations: 7.65 MB / 448.4 MB, free: 2.23 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches