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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009318/0.0009318, allocations: 196.1 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008352/0.0008352, allocations: 99.28 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.0002659, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2083/0.2086, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.00621/0.2148, allocations: 8.503 MB / 416.7 MB, free: 19.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00365/0.2185, allocations: 2.908 MB / 419.6 MB, free: 16.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005122/0.219, allocations: 23.94 kB / 419.6 MB, free: 16.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000852/0.2199, allocations: 485.2 kB / 420.1 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007592/0.2206, allocations: 484.4 kB / 420.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003888/0.221, allocations: 215.7 kB / 420.7 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001012/0.2221, allocations: 1.634 MB / 422.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005551/0.2226, allocations: 0.5337 MB / 422.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005001/0.2231, allocations: 0.5679 MB / 423.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004643/0.2236, allocations: 0.6261 MB / 424.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.2237, allocations: 84 kB / 424.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002861/0.224, allocations: 127.9 kB / 424.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.2242, allocations: 246.9 kB / 424.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004506/0.2246, allocations: 0.7132 MB / 425.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008459/0.2255, allocations: 1.507 MB / 426.8 MB, free: 8.973 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2255, allocations: 0 / 426.8 MB, free: 8.973 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2255, allocations: 7.984 kB / 426.8 MB, free: 8.965 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.2255, allocations: 0 / 426.8 MB, free: 8.965 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.002062/0.2276, allocations: 1.551 MB / 428.3 MB, free: 7.344 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.2276, allocations: 8.031 kB / 428.3 MB, free: 7.336 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.2278, allocations: 161 kB / 428.5 MB, free: 7.168 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004482/0.2282, allocations: 207 kB / 428.7 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008987/0.2291, allocations: 0.8094 MB / 429.5 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.2293, allocations: 120.3 kB / 429.6 MB, free: 5.984 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.2294, allocations: 119.8 kB / 429.7 MB, free: 5.867 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.2309, allocations: 1.139 MB / 430.9 MB, free: 4.637 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/0.2309, allocations: 7.938 kB / 430.9 MB, free: 4.629 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.712e-05/0.231, allocations: 48 kB / 430.9 MB, free: 4.582 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.231, allocations: 28 kB / 431 MB, free: 4.555 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.2324, allocations: 0.773 MB / 431.7 MB, free: 3.781 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.00448/0.2369, allocations: 3.957 MB / 435.7 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.2384, allocations: 0.5956 MB / 436.3 MB, free: 15.01 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004979/0.2389, allocations: 274.9 kB / 436.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.686e-05/0.2389, allocations: 8.562 kB / 436.6 MB, free: 14.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006167/0.2396, allocations: 303.1 kB / 436.9 MB, free: 14.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 2.274e-06/0.2396, allocations: 0 / 436.9 MB, free: 14.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.00477/0.2443, allocations: 2.124 MB / 439 MB, free: 12.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000244/0.2446, allocations: 475.2 kB / 439.4 MB, free: 11.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/0.246, allocations: 1.094 MB / 440.5 MB, free: 10.53 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.978e-05/0.2461, allocations: 41.7 kB / 440.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005033/0.2466, allocations: 0.6389 MB / 441.2 MB, free: 9.836 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001929/0.2468, allocations: 236.7 kB / 441.5 MB, free: 9.602 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.98e-05/0.2469, allocations: 27.94 kB / 441.5 MB, free: 9.574 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.247, allocations: 345.9 kB / 441.8 MB, free: 9.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005364/0.2475, allocations: 250.5 kB / 442.1 MB, free: 8.984 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008624/0.2484, allocations: 0.7131 MB / 442.8 MB, free: 8.059 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.2497, allocations: 0.957 MB / 443.7 MB, free: 6.934 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.2497, allocations: 0 / 443.7 MB, free: 6.934 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001855/0.2516, allocations: 1.138 MB / 444.9 MB, free: 5.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.276e-05/0.2517, allocations: 71.42 kB / 444.9 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.2517, allocations: 12 kB / 445 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005671/0.2523, allocations: 165.6 kB / 445.1 MB, free: 5.508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006462/0.2529, allocations: 211.7 kB / 445.3 MB, free: 5.301 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00374/0.2567, allocations: 3.558 MB / 448.9 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008877/0.2576, allocations: 83.97 kB / 449 MB, free: 1.402 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.213e-05/0.2577, allocations: 48 kB / 449 MB, free: 1.355 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.0004769/0.2581, allocations: 297.5 kB / 449.3 MB, free: 1.055 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.2583, allocations: 122.5 kB / 449.4 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.2597, allocations: 0.7233 MB / 450.1 MB, free: 192 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2597, allocations: 4 kB / 450.1 MB, free: 188 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2598, allocations: 4 kB / 450.1 MB, free: 184 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001368/0.2611, allocations: 0.9724 MB / 451.1 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/0.2637, allocations: 1.81 MB / 452.9 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.2638, allocations: 4 kB / 452.9 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000461/0.2642, allocations: 107.9 kB / 453 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003982/0.2646, allocations: 133.8 kB / 453.2 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/0.2647, allocations: 15.98 kB / 453.2 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/0.2675, allocations: 3.282 MB / 456.5 MB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2675, allocations: 0 / 456.5 MB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.2692, allocations: 1.073 MB / 457.5 MB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003513/0.2696, allocations: 255.5 kB / 457.8 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.2697, allocations: 20 kB / 457.8 MB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006007/0.2703, allocations: 55.81 kB / 457.9 MB, free: 7.938 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.2705, allocations: 60.41 kB / 457.9 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.469e-05/0.2705, allocations: 16 kB / 457.9 MB, free: 7.863 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009439/0.2715, allocations: 0.7367 MB / 458.7 MB, free: 7.121 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2715, allocations: 0 / 458.7 MB, free: 7.121 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009997/0.2725, allocations: 308.1 kB / 459 MB, free: 6.82 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.002039/0.2746, allocations: 1.651 MB / 460.6 MB, free: 5.113 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001974/0.2765, allocations: 1.102 MB / 461.7 MB, free: 3.961 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.2766, allocations: 5.875 kB / 461.7 MB, free: 3.957 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008773/0.2774, allocations: 0.5514 MB / 462.3 MB, free: 3.383 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/0.2792, allocations: 314.5 kB / 462.6 MB, free: 3.086 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/0.2899, allocations: 7.255 MB / 469.8 MB, free: 11.35 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.2906, allocations: 1.078 MB / 470.9 MB, free: 10.24 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005738/0.2911, allocations: 479.3 kB / 471.4 MB, free: 9.773 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2911, allocations: 4 kB / 471.4 MB, free: 9.77 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.889/5.18, allocations: 29.03 MB / 0.4887 GB, free: 12.69 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > 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/jenkins1/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