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_Temperature.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_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008191/0.0008192, allocations: 183 kB / 16.71 MB, free: 4.961 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.319/1.319, allocations: 225.7 MB / 243.2 MB, free: 10.21 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.0007212/0.0007212, allocations: 88.5 kB / 294.4 MB, free: 9.742 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002115/0.0002117, allocations: 7.938 kB / 354.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1867, allocations: 50.41 MB / 404.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.005056/0.1918, allocations: 7.041 MB / 411.6 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002613/0.1944, allocations: 2.79 MB / 414.4 MB, free: 21.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003513/0.1948, allocations: 23.94 kB / 414.4 MB, free: 21.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008609/0.1956, allocations: 461.6 kB / 414.9 MB, free: 20.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00054/0.1962, allocations: 345.5 kB / 415.2 MB, free: 20.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002796/0.1965, allocations: 187.8 kB / 415.4 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006854/0.1972, allocations: 1.171 MB / 416.6 MB, free: 19.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004576/0.1976, allocations: 463.9 kB / 417 MB, free: 18.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000312/0.198, allocations: 398.1 kB / 417.4 MB, free: 18.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003499/0.1983, allocations: 453.7 kB / 417.9 MB, free: 17.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.216e-05/0.1984, allocations: 56 kB / 417.9 MB, free: 17.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.1986, allocations: 95.95 kB / 418 MB, free: 17.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.518e-05/0.1987, allocations: 167.1 kB / 418.2 MB, free: 17.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002886/0.199, allocations: 0.5186 MB / 418.7 MB, free: 17.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007425/0.1997, allocations: 1.362 MB / 420.1 MB, free: 15.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1998, allocations: 4 kB / 420.1 MB, free: 15.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1998, allocations: 0 / 420.1 MB, free: 15.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.1998, allocations: 0 / 420.1 MB, free: 15.74 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001592/0.2014, allocations: 1.158 MB / 421.2 MB, free: 14.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.2014, allocations: 8.031 kB / 421.2 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003968/0.2018, allocations: 151.6 kB / 421.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007262/0.2026, allocations: 0.6377 MB / 422 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/0.2026, allocations: 58.38 kB / 422.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.082e-05/0.2027, allocations: 91.84 kB / 422.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.2038, allocations: 0.8184 MB / 423 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.457e-05/0.2038, allocations: 0 / 423 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.294e-05/0.2039, allocations: 39.98 kB / 423 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.2039, allocations: 24 kB / 423 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008434/0.2047, allocations: 0.5466 MB / 423.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003/0.2077, allocations: 3.597 MB / 427.2 MB, free: 8.258 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004353/0.2082, allocations: 250.5 kB / 427.4 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.2084, allocations: 128.7 kB / 427.6 MB, free: 7.875 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.2084, allocations: 4 kB / 427.6 MB, free: 7.871 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.2085, allocations: 38.56 kB / 427.6 MB, free: 7.824 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.303e-06/0.2085, allocations: 0 / 427.6 MB, free: 7.824 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001597/0.2101, allocations: 1.107 MB / 428.7 MB, free: 6.645 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.2101, allocations: 85.05 kB / 428.8 MB, free: 6.543 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007907/0.2109, allocations: 0.7546 MB / 429.5 MB, free: 5.777 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.2109, allocations: 33.7 kB / 429.6 MB, free: 5.738 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002965/0.2113, allocations: 0.5097 MB / 430.1 MB, free: 5.219 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.067e-05/0.2113, allocations: 110.4 kB / 430.2 MB, free: 5.109 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.453e-05/0.2114, allocations: 12 kB / 430.2 MB, free: 5.098 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.2115, allocations: 386.8 kB / 430.6 MB, free: 4.711 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002682/0.2118, allocations: 137.2 kB / 430.7 MB, free: 4.578 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.2121, allocations: 454.2 kB / 431.2 MB, free: 3.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005833/0.2127, allocations: 0.6215 MB / 431.8 MB, free: 3.211 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2127, allocations: 4 kB / 431.8 MB, free: 3.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0008181/0.2135, allocations: 0.6549 MB / 432.4 MB, free: 2.543 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.2136, allocations: 8 kB / 432.4 MB, free: 2.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.2136, allocations: 16.78 kB / 432.5 MB, free: 2.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001265/0.2137, allocations: 36.84 kB / 432.5 MB, free: 2.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003861/0.2141, allocations: 155.7 kB / 432.6 MB, free: 2.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005892/0.2147, allocations: 1.292 MB / 433.9 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004045/0.2151, allocations: 51.88 kB / 434 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.2152, allocations: 32 kB / 434 MB, free: 0.8203 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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.0002177/0.2154, allocations: 245.6 kB / 434.3 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.13e-05/0.2155, allocations: 75.06 kB / 434.3 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005751/0.216, allocations: 353.1 kB / 434.7 MB, free: 148 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2161, allocations: 4 kB / 434.7 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.2161, allocations: 0 / 434.7 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.2161, allocations: 0 / 434.7 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.2177, allocations: 1.142 MB / 435.8 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2177, allocations: 4 kB / 435.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002759/0.218, allocations: 67.89 kB / 435.9 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.389e-05/0.2181, allocations: 24.84 kB / 435.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.2181, allocations: 8 kB / 435.9 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007929/0.2189, allocations: 1.264 MB / 437.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2189, allocations: 7.969 kB / 437.2 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008284/0.2197, allocations: 0.5955 MB / 437.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002057/0.22, allocations: 184.2 kB / 438 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.713e-05/0.22, allocations: 8 kB / 438 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000325/0.2204, allocations: 27.92 kB / 438 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.744e-05/0.2204, allocations: 19.97 kB / 438 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.2205, allocations: 8 kB / 438 MB, free: 12.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000631/0.2211, allocations: 0.5186 MB / 438.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2211, allocations: 0 / 438.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005675/0.2217, allocations: 168 kB / 438.7 MB, free: 11.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 (28): * Single equations (assignments): 27 * 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.0001885/0.2219, allocations: 123.2 kB / 438.8 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008203/0.2227, allocations: 496.8 kB / 439.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2227, allocations: 4 kB / 439.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003558/0.2231, allocations: 247.9 kB / 439.6 MB, free: 10.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.2241, allocations: 176.3 kB / 439.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.2263, allocations: 1.899 MB / 441.6 MB, free: 8.816 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004778/0.2268, allocations: 0.9566 MB / 442.6 MB, free: 7.832 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003297/0.2272, allocations: 94.17 kB / 442.7 MB, free: 7.738 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.2273, allocations: 55.38 kB / 442.7 MB, free: 7.684 MB / 314.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2273, allocations: 0 / 442.7 MB, free: 7.684 MB / 314.7 MB Notification: Performance of Templates: time 0.01365/0.2409, allocations: 7.935 MB / 450.7 MB, free: 15.86 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches