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.001601/0.001601, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 226.5 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007546/0.0007546, allocations: 108.6 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001985/0.0001985, allocations: 4 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1797/0.1799, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.005026/0.185, allocations: 7.03 MB / 415.1 MB, free: 20.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003008/0.188, allocations: 2.489 MB / 417.6 MB, free: 18.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005152/0.1886, allocations: 20 kB / 417.6 MB, free: 18.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009035/0.1895, allocations: 421.6 kB / 418 MB, free: 17.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006144/0.1901, allocations: 333.5 kB / 418.3 MB, free: 17.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.1904, allocations: 143.8 kB / 418.5 MB, free: 17.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007441/0.1912, allocations: 1.147 MB / 419.6 MB, free: 16.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004791/0.1917, allocations: 455.9 kB / 420.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003906/0.1921, allocations: 402.2 kB / 420.5 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003396/0.1924, allocations: 437.9 kB / 420.9 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.679e-05/0.1925, allocations: 59.94 kB / 420.9 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.1927, allocations: 104 kB / 421 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.723e-05/0.1928, allocations: 159.2 kB / 421.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002979/0.1931, allocations: 0.4993 MB / 421.7 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006585/0.1938, allocations: 1.13 MB / 422.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1938, allocations: 0 / 422.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1938, allocations: 0 / 422.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.1938, allocations: 0 / 422.8 MB, free: 12.86 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.001628/0.1955, allocations: 1.153 MB / 424 MB, free: 11.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.1955, allocations: 8.031 kB / 424 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007441/0.1963, allocations: 179.5 kB / 424.2 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008574/0.1971, allocations: 0.6415 MB / 424.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.1972, allocations: 58.38 kB / 424.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.1973, allocations: 95.84 kB / 425 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.1987, allocations: 0.8145 MB / 425.8 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/0.1987, allocations: 11.98 kB / 425.8 MB, free: 9.781 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.065e-05/0.1988, allocations: 28 kB / 425.8 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.1988, allocations: 24 kB / 425.8 MB, free: 9.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009135/0.1997, allocations: 0.5505 MB / 426.4 MB, free: 9.176 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003153/0.2029, allocations: 3.597 MB / 430 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004461/0.2034, allocations: 253 kB / 430.2 MB, free: 5.086 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002189/0.2036, allocations: 124.7 kB / 430.3 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.2036, allocations: 4 kB / 430.4 MB, free: 4.957 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.2036, allocations: 42.56 kB / 430.4 MB, free: 4.906 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.2036, allocations: 0 / 430.4 MB, free: 4.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001672/0.2053, allocations: 1.096 MB / 431.5 MB, free: 3.734 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.552e-05/0.2054, allocations: 85.05 kB / 431.6 MB, free: 3.633 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007518/0.2061, allocations: 0.7584 MB / 432.3 MB, free: 2.867 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.2062, allocations: 33.7 kB / 432.4 MB, free: 2.828 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.2064, allocations: 0.5097 MB / 432.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.204e-05/0.2064, allocations: 110.4 kB / 433 MB, free: 2.199 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.095e-05/0.2065, allocations: 16 kB / 433 MB, free: 2.184 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.639e-05/0.2065, allocations: 382.8 kB / 433.4 MB, free: 1.801 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002563/0.2068, allocations: 137.2 kB / 433.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/0.2071, allocations: 454.2 kB / 433.9 MB, free: 1.078 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006046/0.2077, allocations: 0.6268 MB / 434.6 MB, free: 312 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.2078, allocations: 0 / 434.6 MB, free: 312 kB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001005/0.2088, allocations: 0.6574 MB / 435.2 MB, free: 15.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.2088, allocations: 8 kB / 435.2 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.2088, allocations: 15.94 kB / 435.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001341/0.209, allocations: 37.59 kB / 435.3 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004481/0.2094, allocations: 159.7 kB / 435.4 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009611/0.2104, allocations: 1.288 MB / 436.7 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004402/0.2108, allocations: 47.89 kB / 436.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.2109, allocations: 32 kB / 436.8 MB, free: 13.91 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.0002949/0.2112, allocations: 245.6 kB / 437.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.546e-05/0.2113, allocations: 75.06 kB / 437.1 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006569/0.212, allocations: 346.1 kB / 437.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.212, allocations: 4 kB / 437.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.212, allocations: 0 / 437.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.212, allocations: 0 / 437.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.2136, allocations: 1.156 MB / 438.6 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.2136, allocations: 4 kB / 438.6 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002908/0.2139, allocations: 63.91 kB / 438.7 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.822e-05/0.214, allocations: 24.84 kB / 438.7 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.214, allocations: 8 kB / 438.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008237/0.2148, allocations: 1.268 MB / 440 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.2148, allocations: 4.031 kB / 440 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008833/0.2157, allocations: 0.5919 MB / 440.6 MB, free: 9.855 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.2159, allocations: 184.2 kB / 440.8 MB, free: 9.656 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.878e-05/0.216, allocations: 8 kB / 440.8 MB, free: 9.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003414/0.2164, allocations: 27.92 kB / 440.8 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.526e-05/0.2165, allocations: 23.91 kB / 440.8 MB, free: 9.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.2165, allocations: 11.98 kB / 440.8 MB, free: 9.586 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006383/0.2171, allocations: 0.5147 MB / 441.4 MB, free: 9.074 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2171, allocations: 0 / 441.4 MB, free: 9.074 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006205/0.2178, allocations: 168 kB / 441.5 MB, free: 8.91 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.0002149/0.218, allocations: 123.2 kB / 441.6 MB, free: 8.777 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008328/0.2188, allocations: 487.9 kB / 442.1 MB, free: 8.289 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2188, allocations: 0 / 442.1 MB, free: 8.289 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003734/0.2192, allocations: 255.7 kB / 442.4 MB, free: 8.031 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.2203, allocations: 181.4 kB / 442.5 MB, free: 7.863 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.2226, allocations: 1.83 MB / 444.4 MB, free: 5.973 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.2231, allocations: 0.9489 MB / 445.3 MB, free: 4.996 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.2232, allocations: 55.44 kB / 445.4 MB, free: 4.941 MB / 314.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2232, allocations: 0 / 445.4 MB, free: 4.941 MB / 314.7 MB Notification: Performance of Templates: time 0.01566/0.2389, allocations: 13.67 MB / 459 MB, free: 7.301 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