Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003532/0.0003533, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09413/0.09452, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4422/0.5368, allocations: 94.49 MB / 403 MB, free: 13.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.5371, allocations: 85.61 kB / 403.1 MB, free: 13.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1179/0.655, allocations: 30.3 MB / 433.4 MB, free: 2.055 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.6551, allocations: 4 kB / 433.4 MB, free: 2.051 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.362e-05/0.6552, allocations: 24 kB / 433.4 MB, free: 2.027 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004338/0.6595, allocations: 1.531 MB / 435 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.6596, allocations: 12.03 kB / 435 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004709/0.6601, allocations: 171.2 kB / 435.1 MB, free: 420 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008549/0.661, allocations: 206.4 kB / 435.3 MB, free: 212 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002588/0.6636, allocations: 0.8338 MB / 436.2 MB, free: 15.53 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002035/0.6638, allocations: 121 kB / 436.3 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002775/0.6641, allocations: 111.2 kB / 436.4 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003253/0.6674, allocations: 1.127 MB / 437.5 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.153e-05/0.6675, allocations: 7.906 kB / 437.5 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000163/0.6677, allocations: 52.89 kB / 437.6 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-05/0.6677, allocations: 27.94 kB / 437.6 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.6705, allocations: 0.7736 MB / 438.4 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009619/0.6802, allocations: 3.92 MB / 442.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00257/0.6828, allocations: 0.6133 MB / 442.9 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.448e-05/0.6829, allocations: 8.391 kB / 442.9 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/0.6839, allocations: 311.4 kB / 443.2 MB, free: 10.08 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 4.398e-06/0.684, allocations: 0 / 443.2 MB, free: 10.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.00796/0.6919, allocations: 2.109 MB / 445.4 MB, free: 8.289 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002465/0.6922, allocations: 483 kB / 445.8 MB, free: 7.707 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002016/0.6943, allocations: 0.9225 MB / 446.7 MB, free: 7.012 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001811/0.6945, allocations: 41.45 kB / 446.8 MB, free: 6.977 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006113/0.6951, allocations: 0.6248 MB / 447.4 MB, free: 6.539 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003416/0.6955, allocations: 235 kB / 447.6 MB, free: 6.344 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.503e-05/0.6955, allocations: 19.06 kB / 447.7 MB, free: 6.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.6957, allocations: 349.9 kB / 448 MB, free: 6.008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009204/0.6966, allocations: 257.1 kB / 448.3 MB, free: 5.836 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.698, allocations: 0.7105 MB / 449 MB, free: 5.035 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.6993, allocations: 416.8 kB / 449.4 MB, free: 4.742 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/0.6993, allocations: 4 kB / 449.4 MB, free: 4.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003222/0.7026, allocations: 1.078 MB / 450.5 MB, free: 3.895 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.11e-05/0.7027, allocations: 67.39 kB / 450.5 MB, free: 3.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/0.7027, allocations: 12 kB / 450.5 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008567/0.7036, allocations: 175.3 kB / 450.7 MB, free: 3.656 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001364/0.7049, allocations: 215.3 kB / 450.9 MB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006542/0.7115, allocations: 3.614 MB / 454.5 MB, free: 15.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/0.7132, allocations: 80.03 kB / 454.6 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/0.7135, allocations: 44 kB / 454.6 MB, free: 15.58 MB / 346.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 (114): * Single equations (assignments): 110 * 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.0009158/0.7144, allocations: 301.5 kB / 454.9 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003519/0.7148, allocations: 122.6 kB / 455.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002719/0.7175, allocations: 0.727 MB / 455.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/0.7176, allocations: 8 kB / 455.8 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.7176, allocations: 0 / 455.8 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002143/0.7197, allocations: 0.9569 MB / 456.8 MB, free: 13.33 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004806/0.7246, allocations: 1.808 MB / 458.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.7246, allocations: 224 / 458.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009457/0.7256, allocations: 119.8 kB / 458.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007057/0.7263, allocations: 125.6 kB / 458.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.055e-05/0.7264, allocations: 16 kB / 458.8 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005154/0.7316, allocations: 3.314 MB / 462.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.7316, allocations: 0 / 462.1 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00354/0.7352, allocations: 1.191 MB / 463.3 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000804/0.736, allocations: 247.6 kB / 463.6 MB, free: 6.078 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002716/0.7363, allocations: 20 kB / 463.6 MB, free: 6.059 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.7374, allocations: 51.91 kB / 463.6 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000211/0.7376, allocations: 56.42 kB / 463.7 MB, free: 5.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.89e-05/0.7377, allocations: 27.97 kB / 463.7 MB, free: 5.926 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001624/0.7393, allocations: 0.6969 MB / 464.4 MB, free: 5.223 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.052e-06/0.7393, allocations: 0 / 464.4 MB, free: 5.223 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001959/0.7413, allocations: 360 kB / 464.8 MB, free: 4.871 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,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 (53): * Single equations (assignments): 49 * 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.004539/0.7459, allocations: 2.453 MB / 467.2 MB, free: 2.375 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003312/0.7492, allocations: 1.116 MB / 468.3 MB, free: 1.211 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.7493, allocations: 0 / 468.3 MB, free: 1.211 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001587/0.7509, allocations: 0.5563 MB / 468.9 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002367/0.7533, allocations: 304.3 kB / 469.2 MB, free: 336 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/0.7646, allocations: 11.39 MB / 480.6 MB, free: 4.617 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009011/0.7656, allocations: 1.105 MB / 481.7 MB, free: 3.484 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/0.7666, allocations: 459.3 kB / 482.1 MB, free: 3.035 MB / 362.7 MB Notification: Performance of SimCode: time 1.373e-06/0.7666, allocations: 0 / 482.1 MB, free: 3.035 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.251/4.018, allocations: 30.74 MB / 0.5008 GB, free: 4.285 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat