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_Start.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_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.156/2.156, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003589, allocations: 23.94 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09457/0.09497, allocations: 44.49 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4323/0.5273, allocations: 88.71 MB / 397.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.5277, allocations: 83.84 kB / 397.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0857/0.6134, allocations: 22.95 MB / 420.3 MB, free: 6.734 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.6134, allocations: 7.688 kB / 420.3 MB, free: 6.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.451e-05/0.6135, allocations: 15 kB / 420.3 MB, free: 6.73 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002464/0.616, allocations: 1.096 MB / 421.4 MB, free: 5.941 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.169e-05/0.6161, allocations: 10.53 kB / 421.4 MB, free: 5.941 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003172/0.6164, allocations: 121.4 kB / 421.5 MB, free: 5.887 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006861/0.6171, allocations: 150.8 kB / 421.7 MB, free: 5.816 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/0.6188, allocations: 0.6889 MB / 422.4 MB, free: 5.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/0.6189, allocations: 57.28 kB / 422.4 MB, free: 5.406 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.6191, allocations: 84.02 kB / 422.5 MB, free: 5.398 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.6209, allocations: 0.7707 MB / 423.3 MB, free: 5.156 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.982e-05/0.621, allocations: 3.719 kB / 423.3 MB, free: 5.156 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.767e-05/0.6211, allocations: 35.56 kB / 423.3 MB, free: 5.152 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/0.6211, allocations: 19.22 kB / 423.3 MB, free: 5.152 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.6226, allocations: 0.5433 MB / 423.9 MB, free: 5.062 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005649/0.6283, allocations: 3.452 MB / 427.3 MB, free: 2.805 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006858/0.629, allocations: 240.9 kB / 427.6 MB, free: 2.746 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.6291, allocations: 3.219 kB / 427.6 MB, free: 2.746 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.6291, allocations: 37.19 kB / 427.6 MB, free: 2.707 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 3.226e-06/0.6291, allocations: 0 / 427.6 MB, free: 2.707 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.002938/0.6321, allocations: 1.069 MB / 428.7 MB, free: 2.102 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.6322, allocations: 83.81 kB / 428.8 MB, free: 2.008 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/0.6333, allocations: 0.619 MB / 429.4 MB, free: 1.793 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.6333, allocations: 37.98 kB / 429.4 MB, free: 1.758 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000303/0.6336, allocations: 0.5128 MB / 429.9 MB, free: 1.398 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.032e-05/0.6337, allocations: 108.2 kB / 430 MB, free: 1.328 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.922e-05/0.6338, allocations: 10.47 kB / 430 MB, free: 1.328 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.524e-05/0.6339, allocations: 334.9 kB / 430.4 MB, free: 1.008 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004452/0.6343, allocations: 133.1 kB / 430.5 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005431/0.6349, allocations: 425.1 kB / 430.9 MB, free: 0.582 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005539/0.6355, allocations: 205.5 kB / 431.1 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.6355, allocations: 7.906 kB / 431.1 MB, free: 0.543 MB / 314.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001401/0.6369, allocations: 0.5759 MB / 431.7 MB, free: 376 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.6369, allocations: 7.75 kB / 431.7 MB, free: 376 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.637, allocations: 15.69 kB / 431.7 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002106/0.6372, allocations: 35.91 kB / 431.8 MB, free: 360 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007737/0.638, allocations: 143.9 kB / 431.9 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.6392, allocations: 1.294 MB / 433.2 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008765/0.6401, allocations: 40.77 kB / 433.2 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.843e-05/0.6402, allocations: 29.56 kB / 433.3 MB, free: 15.02 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005505/0.6407, allocations: 241.6 kB / 433.5 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.6409, allocations: 70.34 kB / 433.6 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009985/0.6419, allocations: 342.3 kB / 433.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.6419, allocations: 11.95 kB / 433.9 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.6419, allocations: 0 / 433.9 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.6419, allocations: 0 / 433.9 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002412/0.6444, allocations: 1.101 MB / 435 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.6444, allocations: 0 / 435 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004992/0.6449, allocations: 71.08 kB / 435.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/0.6451, allocations: 20.08 kB / 435.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.6451, allocations: 7.375 kB / 435.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.6463, allocations: 1.277 MB / 436.4 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.6463, allocations: 7.891 kB / 436.4 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.6478, allocations: 0.6549 MB / 437 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003551/0.6482, allocations: 180.5 kB / 437.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.6483, allocations: 7.281 kB / 437.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005253/0.6489, allocations: 22.67 kB / 437.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.982e-05/0.649, allocations: 27.12 kB / 437.3 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.649, allocations: 11.12 kB / 437.3 MB, free: 12.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008802/0.6499, allocations: 480.6 kB / 437.8 MB, free: 12.08 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6499, allocations: 0 / 437.8 MB, free: 12.08 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001058/0.651, allocations: 192.1 kB / 437.9 MB, free: 12.07 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002441/0.6534, allocations: 1.87 MB / 439.8 MB, free: 10.6 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.6548, allocations: 472 kB / 440.3 MB, free: 10.37 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6549, allocations: 1.875 kB / 440.3 MB, free: 10.37 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006/0.6555, allocations: 248 kB / 440.5 MB, free: 10.15 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001419/0.6569, allocations: 167.3 kB / 440.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/0.6698, allocations: 10.81 MB / 451.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007346/0.6706, allocations: 0.9608 MB / 452.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005441/0.6712, allocations: 305.2 kB / 452.8 MB, free: 14.47 MB / 346.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6712, allocations: 0 / 452.8 MB, free: 14.47 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.971/3.642, allocations: 17.61 MB / 470.4 MB, free: 13.14 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat