Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001709/0.001709, allocations: 191.8 kB / 17.37 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 226.5 MB / 244.7 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007598/0.0007599, allocations: 89.8 kB / 296.8 MB, free: 6.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002791, allocations: 8 kB / 356.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1842/0.1845, allocations: 51.29 MB / 408.1 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.00613/0.1907, allocations: 8.504 MB / 416.6 MB, free: 19.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003697/0.1944, allocations: 2.904 MB / 419.5 MB, free: 16.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005629/0.195, allocations: 31.88 kB / 419.5 MB, free: 16.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009737/0.196, allocations: 485.2 kB / 420 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000852/0.1969, allocations: 480.5 kB / 420.4 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004178/0.1973, allocations: 223.6 kB / 420.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.1984, allocations: 1.63 MB / 422.3 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006378/0.199, allocations: 0.5376 MB / 422.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006319/0.1997, allocations: 0.564 MB / 423.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005385/0.2002, allocations: 0.6261 MB / 424 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.2004, allocations: 84 kB / 424.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003026/0.2007, allocations: 128 kB / 424.2 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.2008, allocations: 242.9 kB / 424.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004789/0.2013, allocations: 0.7093 MB / 425.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009089/0.2022, allocations: 1.507 MB / 426.7 MB, free: 9.043 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.2023, allocations: 0 / 426.7 MB, free: 9.043 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2023, allocations: 0 / 426.7 MB, free: 9.043 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.2023, allocations: 0 / 426.7 MB, free: 9.043 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002116/0.2044, allocations: 1.559 MB / 428.2 MB, free: 7.414 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.2044, allocations: 12.03 kB / 428.2 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00046/0.2049, allocations: 199 kB / 428.4 MB, free: 7.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009515/0.2059, allocations: 0.821 MB / 429.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.206, allocations: 116.4 kB / 429.4 MB, free: 6.219 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.2061, allocations: 116 kB / 429.5 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.2077, allocations: 1.146 MB / 430.6 MB, free: 4.867 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.293e-05/0.2077, allocations: 3.984 kB / 430.6 MB, free: 4.863 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.335e-05/0.2078, allocations: 48 kB / 430.7 MB, free: 4.816 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.2078, allocations: 24 kB / 430.7 MB, free: 4.793 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.2091, allocations: 0.7691 MB / 431.5 MB, free: 4.023 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004398/0.2135, allocations: 3.965 MB / 435.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.2151, allocations: 0.5972 MB / 436 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004914/0.2156, allocations: 274.8 kB / 436.3 MB, free: 14.97 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.978e-05/0.2156, allocations: 8.547 kB / 436.3 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005975/0.2162, allocations: 303.1 kB / 436.6 MB, free: 14.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 2.925e-06/0.2162, allocations: 0 / 436.6 MB, free: 14.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.004357/0.2206, allocations: 2.12 MB / 438.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001743/0.2208, allocations: 483.2 kB / 439.2 MB, free: 11.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.2222, allocations: 1.094 MB / 440.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.364e-05/0.2222, allocations: 45.7 kB / 440.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004395/0.2227, allocations: 0.6427 MB / 441 MB, free: 10.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.2229, allocations: 232.7 kB / 441.2 MB, free: 9.824 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.2229, allocations: 20 kB / 441.2 MB, free: 9.805 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.223, allocations: 345.9 kB / 441.6 MB, free: 9.461 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000519/0.2236, allocations: 254.5 kB / 441.8 MB, free: 9.211 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007915/0.2244, allocations: 0.7169 MB / 442.5 MB, free: 8.281 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.2256, allocations: 0.9532 MB / 443.5 MB, free: 7.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.2256, allocations: 7.938 kB / 443.5 MB, free: 7.152 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001866/0.2275, allocations: 1.138 MB / 444.6 MB, free: 5.988 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.461e-05/0.2276, allocations: 67.39 kB / 444.7 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.2276, allocations: 8 kB / 444.7 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005534/0.2282, allocations: 165.8 kB / 444.9 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006599/0.2288, allocations: 211.6 kB / 445.1 MB, free: 5.527 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003568/0.2324, allocations: 3.562 MB / 448.6 MB, free: 1.707 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009389/0.2334, allocations: 80.02 kB / 448.7 MB, free: 1.629 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-05/0.2335, allocations: 47.98 kB / 448.8 MB, free: 1.582 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004582/0.2339, allocations: 293.5 kB / 449 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.2341, allocations: 122.5 kB / 449.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/0.2355, allocations: 0.7233 MB / 449.9 MB, free: 428 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2355, allocations: 8 kB / 449.9 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2355, allocations: 8.109 kB / 449.9 MB, free: 412 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001309/0.2369, allocations: 0.9685 MB / 450.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/0.2396, allocations: 1.806 MB / 452.7 MB, free: 13.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.2397, allocations: 0 / 452.7 MB, free: 13.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004898/0.2402, allocations: 116.1 kB / 452.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004151/0.2406, allocations: 122.6 kB / 452.9 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/0.2406, allocations: 12 kB / 452.9 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002995/0.2436, allocations: 3.286 MB / 456.2 MB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.2437, allocations: 4.031 kB / 456.2 MB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.2455, allocations: 1.069 MB / 457.3 MB, free: 8.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004136/0.2459, allocations: 251.6 kB / 457.5 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.2461, allocations: 28.05 kB / 457.6 MB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006982/0.2468, allocations: 51.91 kB / 457.6 MB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.2469, allocations: 56.42 kB / 457.7 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.564e-05/0.247, allocations: 23.98 kB / 457.7 MB, free: 8.098 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001171/0.2482, allocations: 0.7367 MB / 458.4 MB, free: 7.355 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2482, allocations: 0 / 458.4 MB, free: 7.355 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001155/0.2493, allocations: 304 kB / 458.7 MB, free: 7.059 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002394/0.2496, allocations: 147.1 kB / 458.9 MB, free: 6.906 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002265/0.2519, allocations: 1.107 MB / 460 MB, free: 5.754 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.2519, allocations: 0 / 460 MB, free: 5.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.2529, allocations: 0.5489 MB / 460.5 MB, free: 5.176 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/0.2548, allocations: 306.9 kB / 460.8 MB, free: 4.879 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003559/0.2584, allocations: 2.755 MB / 463.6 MB, free: 2.074 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/0.259, allocations: 1.082 MB / 464.7 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.2592, allocations: 83.44 kB / 464.7 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2592, allocations: 0 / 464.7 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of Templates: time 0.02777/0.287, allocations: 26.01 MB / 490.7 MB, free: 6.941 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches