Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.967/1.967, allocations: 194.9 MB / 211.1 MB, free: 8.574 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.0003648, allocations: 8 kB / 264.1 MB, free: 3.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3047, allocations: 44.51 MB / 308.6 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1728/0.4776, allocations: 94.49 MB / 403.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003381/0.478, allocations: 83.95 kB / 403.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3899/0.8679, allocations: 30.29 MB / 433.4 MB, free: 87.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.8679, allocations: 3.938 kB / 433.4 MB, free: 87.96 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.956e-05/0.868, allocations: 23.12 kB / 433.5 MB, free: 87.96 MB / 346.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.004007/0.872, allocations: 1.531 MB / 435 MB, free: 86.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.8721, allocations: 7.75 kB / 435 MB, free: 86.97 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003257/0.8724, allocations: 174.5 kB / 435.2 MB, free: 86.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007689/0.8732, allocations: 196.9 kB / 435.4 MB, free: 86.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002371/0.8756, allocations: 0.8443 MB / 436.2 MB, free: 86.24 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.8758, allocations: 121.5 kB / 436.3 MB, free: 86.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000238/0.8761, allocations: 106.9 kB / 436.4 MB, free: 86.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002919/0.879, allocations: 1.129 MB / 437.6 MB, free: 85.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.692e-05/0.8791, allocations: 11.91 kB / 437.6 MB, free: 85.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.8793, allocations: 47.98 kB / 437.6 MB, free: 85.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.185e-05/0.8793, allocations: 24 kB / 437.6 MB, free: 85.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002413/0.8818, allocations: 0.7803 MB / 438.4 MB, free: 84.74 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007873/0.8897, allocations: 3.915 MB / 442.3 MB, free: 80.78 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002468/0.8922, allocations: 0.6023 MB / 442.9 MB, free: 80.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.719e-05/0.8923, allocations: 20.45 kB / 443 MB, free: 80.15 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008892/0.8932, allocations: 303.1 kB / 443.3 MB, free: 79.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 3.927e-06/0.8932, allocations: 0 / 443.3 MB, free: 79.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.00756/0.9008, allocations: 2.109 MB / 445.4 MB, free: 77.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001689/0.901, allocations: 483.2 kB / 445.8 MB, free: 77.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002581/0.9036, allocations: 0.9221 MB / 446.8 MB, free: 76.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002007/0.9039, allocations: 41.7 kB / 446.8 MB, free: 76.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007934/0.9047, allocations: 0.6348 MB / 447.4 MB, free: 75.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003435/0.9051, allocations: 240.5 kB / 447.7 MB, free: 75.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.447e-05/0.9052, allocations: 20 kB / 447.7 MB, free: 75.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.9053, allocations: 349.9 kB / 448 MB, free: 74.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.9066, allocations: 258.5 kB / 448.3 MB, free: 74.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/0.9084, allocations: 0.713 MB / 449 MB, free: 73.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.9101, allocations: 418.4 kB / 449.4 MB, free: 73.24 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-05/0.9102, allocations: 4 kB / 449.4 MB, free: 73.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.005221/0.9154, allocations: 1.157 MB / 450.6 MB, free: 72.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.368e-05/0.9155, allocations: 71.39 kB / 450.6 MB, free: 71.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.174e-05/0.9156, allocations: 12 kB / 450.7 MB, free: 71.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/0.9168, allocations: 165.8 kB / 450.8 MB, free: 71.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001935/0.9188, allocations: 215.6 kB / 451 MB, free: 71.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00795/0.9268, allocations: 3.606 MB / 454.6 MB, free: 67.72 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002212/0.929, allocations: 76.27 kB / 454.7 MB, free: 67.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/0.9293, allocations: 48 kB / 454.8 MB, free: 67.6 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.0009671/0.9303, allocations: 305.4 kB / 455 MB, free: 67.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004087/0.9307, allocations: 122.5 kB / 455.2 MB, free: 67.17 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003233/0.934, allocations: 0.7269 MB / 455.9 MB, free: 66.42 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/0.934, allocations: 8 kB / 455.9 MB, free: 66.41 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.9341, allocations: 0 / 455.9 MB, free: 66.41 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002742/0.9368, allocations: 0.9569 MB / 456.9 MB, free: 65.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006466/0.9433, allocations: 1.812 MB / 458.7 MB, free: 63.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/0.9434, allocations: 4 kB / 458.7 MB, free: 63.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.9447, allocations: 107.9 kB / 458.8 MB, free: 63.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007504/0.9455, allocations: 137.6 kB / 458.9 MB, free: 63.21 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.9457, allocations: 12 kB / 458.9 MB, free: 63.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004278/0.95, allocations: 3.307 MB / 462.2 MB, free: 59.63 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.95, allocations: 7.984 kB / 462.2 MB, free: 59.62 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003382/0.9534, allocations: 1.195 MB / 463.4 MB, free: 58.35 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007723/0.9542, allocations: 243.6 kB / 463.7 MB, free: 58.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003393/0.9546, allocations: 23.98 kB / 463.7 MB, free: 58.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.9559, allocations: 43.97 kB / 463.7 MB, free: 58.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.9562, allocations: 56.44 kB / 463.8 MB, free: 57.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.82e-05/0.9562, allocations: 24 kB / 463.8 MB, free: 57.95 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001504/0.9578, allocations: 0.7047 MB / 464.5 MB, free: 57.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.9578, allocations: 0 / 464.5 MB, free: 57.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002065/0.9599, allocations: 359.9 kB / 464.9 MB, free: 56.88 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.004315/0.9643, allocations: 2.461 MB / 467.3 MB, free: 54.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003255/0.9676, allocations: 1.111 MB / 468.4 MB, free: 53.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.517e-06/0.9676, allocations: 4 kB / 468.5 MB, free: 53.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.9692, allocations: 0.5685 MB / 469 MB, free: 52.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/0.9715, allocations: 292.3 kB / 469.3 MB, free: 52.33 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009045/0.9806, allocations: 11.34 MB / 480.6 MB, free: 40.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006028/0.9813, allocations: 1.109 MB / 481.8 MB, free: 39.54 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009866/0.9823, allocations: 145.8 kB / 481.9 MB, free: 39.39 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007379/0.9831, allocations: 459.3 kB / 482.3 MB, free: 38.95 MB / 346.7 MB Notification: Performance of SimCode: time 9.82e-07/0.9831, allocations: 0 / 482.3 MB, free: 38.95 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1326/1.116, allocations: 28.97 MB / 0.4993 GB, free: 9.957 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/1.116, allocations: 225.7 kB / 0.4995 GB, free: 9.715 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.985/5.101, allocations: 3.938 kB / 0.4995 GB, free: 9.711 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat