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_QuasiStationary.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_QuasiStationary,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.849/1.849, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003495, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09054/0.09093, allocations: 44.51 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.424/0.515, allocations: 89.95 MB / 398.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/0.5153, allocations: 86.56 kB / 398.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1556/0.671, allocations: 40.59 MB / 439.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.671, allocations: 0 / 439.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001679/0.6712, allocations: 43.69 kB / 439.2 MB, free: 13.57 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.006004/0.6772, allocations: 1.748 MB / 441 MB, free: 11.89 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.6773, allocations: 8.031 kB / 441 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008075/0.6781, allocations: 224.8 kB / 441.2 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001361/0.6795, allocations: 257.5 kB / 441.4 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003584/0.6831, allocations: 1.104 MB / 442.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.6833, allocations: 115.3 kB / 442.7 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004036/0.6837, allocations: 159.8 kB / 442.8 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004403/0.6881, allocations: 1.466 MB / 444.3 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.213e-05/0.6883, allocations: 11.89 kB / 444.3 MB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001942/0.6885, allocations: 66.44 kB / 444.4 MB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.624e-05/0.6886, allocations: 36 kB / 444.4 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003426/0.692, allocations: 0.9851 MB / 445.4 MB, free: 8.695 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01435/0.7064, allocations: 6.662 MB / 452 MB, free: 2.469 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.7079, allocations: 417.3 kB / 452.4 MB, free: 2.051 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.612e-05/0.708, allocations: 8.438 kB / 452.5 MB, free: 2.043 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000783/0.7088, allocations: 272.8 kB / 452.7 MB, free: 1.754 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 3.347e-06/0.7088, allocations: 0 / 452.7 MB, free: 1.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.005626/0.7144, allocations: 1.809 MB / 454.5 MB, free: 15.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.7146, allocations: 158.8 kB / 454.7 MB, free: 15.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002667/0.7173, allocations: 1.083 MB / 455.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001567/0.7175, allocations: 37.7 kB / 455.8 MB, free: 14.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000992/0.7185, allocations: 0.849 MB / 456.7 MB, free: 13.67 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003221/0.7188, allocations: 204.7 kB / 456.9 MB, free: 13.47 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.004e-05/0.7189, allocations: 24 kB / 456.9 MB, free: 13.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.7191, allocations: 354.8 kB / 457.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008275/0.72, allocations: 234.5 kB / 457.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.7213, allocations: 0.8073 MB / 458.3 MB, free: 11.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.7224, allocations: 411.5 kB / 458.7 MB, free: 11.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/0.7224, allocations: 4 kB / 458.7 MB, free: 11.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003046/0.7255, allocations: 1.104 MB / 459.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.099e-05/0.7256, allocations: 49.64 kB / 459.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.459e-05/0.7257, allocations: 24.06 kB / 459.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003337/0.726, allocations: 61.7 kB / 459.9 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.7276, allocations: 271.5 kB / 460.2 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002685/0.7303, allocations: 2.595 MB / 462.8 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.732, allocations: 76.02 kB / 462.8 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.7322, allocations: 63.98 kB / 462.9 MB, free: 6.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001056/0.7333, allocations: 361.3 kB / 463.3 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003627/0.7336, allocations: 130.4 kB / 463.4 MB, free: 6.348 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.7355, allocations: 0.5645 MB / 463.9 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.7355, allocations: 4 kB / 463.9 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.7355, allocations: 0 / 463.9 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/0.7356, allocations: 7.984 kB / 464 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004965/0.7405, allocations: 1.855 MB / 465.8 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.7406, allocations: 4 kB / 465.8 MB, free: 3.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008787/0.7415, allocations: 107.9 kB / 465.9 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002479/0.7418, allocations: 45.64 kB / 466 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.917e-05/0.7418, allocations: 16 kB / 466 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002554/0.7444, allocations: 2.56 MB / 468.5 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/0.7444, allocations: 4 kB / 468.5 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002748/0.7472, allocations: 1.129 MB / 469.7 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000755/0.748, allocations: 255.3 kB / 469.9 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002661/0.7483, allocations: 19.98 kB / 469.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009238/0.7492, allocations: 35.98 kB / 470 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.7494, allocations: 59.77 kB / 470 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.7495, allocations: 19.98 kB / 470.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001911/0.7514, allocations: 0.8032 MB / 470.9 MB, free: 14.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.72e-07/0.7515, allocations: 0 / 470.9 MB, free: 14.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002025/0.7535, allocations: 344 kB / 471.2 MB, free: 13.95 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * 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 (54): * Single equations (assignments): 50 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003987/0.7575, allocations: 2.804 MB / 474 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002495/0.76, allocations: 0.9407 MB / 474.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.854e-06/0.7601, allocations: 0 / 474.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.7613, allocations: 466.7 kB / 475.4 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/0.7638, allocations: 312.9 kB / 475.7 MB, free: 9.266 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02687/0.7907, allocations: 20.77 MB / 496.5 MB, free: 3.738 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001219/0.792, allocations: 1.209 MB / 497.7 MB, free: 2.496 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/0.7933, allocations: 0.593 MB / 498.3 MB, free: 1.906 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.7933, allocations: 0 / 498.3 MB, free: 1.906 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.716/4.509, allocations: 37.84 MB / 0.5235 GB, free: 118.2 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat