Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 226.6 MB / 244.3 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007362/0.0007362, allocations: 103.1 kB / 296.4 MB, free: 6.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001949/0.0001949, allocations: 11.94 kB / 356.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1793, allocations: 51.28 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.00482/0.1841, allocations: 7.029 MB / 414.5 MB, free: 20.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.1864, allocations: 2.489 MB / 417 MB, free: 18.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003096/0.1868, allocations: 20 kB / 417 MB, free: 18.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007423/0.1875, allocations: 425.6 kB / 417.4 MB, free: 17.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004434/0.188, allocations: 333.5 kB / 417.8 MB, free: 17.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.1882, allocations: 135.8 kB / 417.9 MB, free: 17.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006209/0.1888, allocations: 1.12 MB / 419 MB, free: 16.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003986/0.1893, allocations: 388.1 kB / 419.4 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003223/0.1896, allocations: 394.2 kB / 419.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.1899, allocations: 438 kB / 420.2 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.34e-05/0.19, allocations: 55.94 kB / 420.3 MB, free: 15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.1902, allocations: 104 kB / 420.4 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.942e-05/0.1903, allocations: 163.2 kB / 420.5 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.1904, allocations: 221.2 kB / 420.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006165/0.191, allocations: 1.141 MB / 421.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.191, allocations: 0 / 421.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.191, allocations: 0 / 421.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.1911, allocations: 0 / 421.9 MB, free: 13.37 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.001468/0.1925, allocations: 1.157 MB / 423 MB, free: 12.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.1926, allocations: 12.03 kB / 423.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005861/0.1932, allocations: 178.6 kB / 423.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006677/0.1938, allocations: 0.6173 MB / 423.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.1939, allocations: 66 kB / 423.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.672e-05/0.194, allocations: 91.95 kB / 424 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.195, allocations: 0.8184 MB / 424.8 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.1951, allocations: 11.89 kB / 424.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.473e-05/0.1951, allocations: 32 kB / 424.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.1951, allocations: 20 kB / 424.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008749/0.196, allocations: 0.5583 MB / 425.4 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/0.199, allocations: 3.578 MB / 429 MB, free: 5.867 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004191/0.1995, allocations: 246.7 kB / 429.3 MB, free: 5.617 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002251/0.1997, allocations: 128.7 kB / 429.4 MB, free: 5.488 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.1997, allocations: 4 kB / 429.4 MB, free: 5.484 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/0.1998, allocations: 34.56 kB / 429.4 MB, free: 5.441 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.964e-06/0.1998, allocations: 3.984 kB / 429.4 MB, free: 5.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.00164/0.2014, allocations: 1.116 MB / 430.5 MB, free: 4.246 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.2015, allocations: 85.09 kB / 430.6 MB, free: 4.145 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006771/0.2021, allocations: 0.7507 MB / 431.4 MB, free: 3.387 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.2022, allocations: 29.7 kB / 431.4 MB, free: 3.352 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.2024, allocations: 0.5174 MB / 431.9 MB, free: 2.828 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.023e-05/0.2024, allocations: 106.5 kB / 432 MB, free: 2.723 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.761e-05/0.2024, allocations: 16 kB / 432 MB, free: 2.707 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.887e-05/0.2025, allocations: 378.8 kB / 432.4 MB, free: 2.328 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.2028, allocations: 137.2 kB / 432.6 MB, free: 2.195 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00032/0.2031, allocations: 454.2 kB / 433 MB, free: 1.602 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003034/0.2034, allocations: 217 kB / 433.2 MB, free: 1.391 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2034, allocations: 4 kB / 433.2 MB, free: 1.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0008815/0.2043, allocations: 0.6495 MB / 433.9 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.2043, allocations: 15.94 kB / 433.9 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.2044, allocations: 11.95 kB / 433.9 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001216/0.2045, allocations: 37.59 kB / 433.9 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000395/0.2049, allocations: 155.8 kB / 434.1 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007447/0.2056, allocations: 1.288 MB / 435.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004287/0.2061, allocations: 39.89 kB / 435.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.834e-05/0.2061, allocations: 39.98 kB / 435.4 MB, free: 15.01 MB / 314.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000263/0.2064, allocations: 245.6 kB / 435.7 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.693e-05/0.2065, allocations: 75.06 kB / 435.8 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006155/0.2071, allocations: 353.8 kB / 436.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.2071, allocations: 4 kB / 436.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.2071, allocations: 0 / 436.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.2071, allocations: 0 / 436.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.2086, allocations: 1.139 MB / 437.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.2086, allocations: 0 / 437.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002758/0.2089, allocations: 71.89 kB / 437.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.998e-05/0.209, allocations: 20.91 kB / 437.3 MB, free: 13.01 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.209, allocations: 15.97 kB / 437.4 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006964/0.2097, allocations: 1.272 MB / 438.6 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2097, allocations: 4 kB / 438.6 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008188/0.2105, allocations: 0.5961 MB / 439.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.2107, allocations: 176.2 kB / 439.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.443e-05/0.2108, allocations: 15.94 kB / 439.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/0.2111, allocations: 23.98 kB / 439.4 MB, free: 10.72 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.481e-05/0.2112, allocations: 23.97 kB / 439.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.2112, allocations: 8 kB / 439.5 MB, free: 10.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005939/0.2118, allocations: 0.5146 MB / 440 MB, free: 10.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2118, allocations: 3.938 kB / 440 MB, free: 10.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005565/0.2124, allocations: 175.9 kB / 440.2 MB, free: 10 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001831/0.2126, allocations: 107.2 kB / 440.3 MB, free: 9.891 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008134/0.2134, allocations: 495.8 kB / 440.7 MB, free: 9.395 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.2134, allocations: 4 kB / 440.7 MB, free: 9.391 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003488/0.2138, allocations: 251.9 kB / 441 MB, free: 9.133 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009004/0.2147, allocations: 188.3 kB / 441.2 MB, free: 8.957 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.2168, allocations: 1.831 MB / 443 MB, free: 7.066 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.2173, allocations: 0.9567 MB / 444 MB, free: 6.082 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.2174, allocations: 51.44 kB / 444 MB, free: 6.031 MB / 314.7 MB Notification: Performance of SimCode: time 4.51e-07/0.2174, allocations: 0 / 444 MB, free: 6.031 MB / 314.7 MB Notification: Performance of Templates: time 0.01481/0.2322, allocations: 13.7 MB / 457.7 MB, free: 8.359 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches