Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.673/1.673, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004944/0.0004945, allocations: 8 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0805/0.08104, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3923/0.4734, allocations: 88.88 MB / 361 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/0.4738, allocations: 88.2 kB / 361.1 MB, free: 0.793 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1199/0.5937, allocations: 28.69 MB / 389.8 MB, free: 8.582 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.307e-06/0.5937, allocations: 0 / 389.8 MB, free: 8.582 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.064e-05/0.5938, allocations: 20 kB / 389.8 MB, free: 8.562 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003902/0.5977, allocations: 1.298 MB / 391.1 MB, free: 7.301 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.5978, allocations: 12.03 kB / 391.1 MB, free: 7.289 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004323/0.5983, allocations: 156.8 kB / 391.3 MB, free: 7.191 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.5993, allocations: 194.3 kB / 391.4 MB, free: 7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002614/0.602, allocations: 0.8046 MB / 392.2 MB, free: 6.328 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.696e-05/0.6021, allocations: 75.64 kB / 392.3 MB, free: 6.281 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002413/0.6024, allocations: 101.9 kB / 392.4 MB, free: 6.215 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002818/0.6052, allocations: 0.9366 MB / 393.4 MB, free: 5.562 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.364e-05/0.6053, allocations: 7.75 kB / 393.4 MB, free: 5.559 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.6054, allocations: 38.94 kB / 393.4 MB, free: 5.551 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.341e-05/0.6055, allocations: 24 kB / 393.4 MB, free: 5.527 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002205/0.6077, allocations: 0.6618 MB / 394.1 MB, free: 5.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00843/0.6162, allocations: 3.956 MB / 398 MB, free: 1.488 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.6174, allocations: 465.2 kB / 398.5 MB, free: 1.004 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.337e-05/0.6175, allocations: 4 kB / 398.5 MB, free: 1 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.6176, allocations: 42.5 kB / 398.5 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.156e-06/0.6176, allocations: 0 / 398.5 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.004647/0.6222, allocations: 1.509 MB / 400.1 MB, free: 15.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.6223, allocations: 89.55 kB / 400.1 MB, free: 15.26 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.6238, allocations: 0.7075 MB / 400.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.822e-05/0.6239, allocations: 33.7 kB / 400.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000508/0.6244, allocations: 0.5823 MB / 401.5 MB, free: 13.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.6246, allocations: 169.6 kB / 401.6 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-05/0.6247, allocations: 16 kB / 401.6 MB, free: 13.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.6249, allocations: 342.8 kB / 402 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006239/0.6255, allocations: 181.9 kB / 402.2 MB, free: 13.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008283/0.6263, allocations: 480 kB / 402.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007658/0.6271, allocations: 256.7 kB / 402.9 MB, free: 12.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.6271, allocations: 4 kB / 402.9 MB, free: 12.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002095/0.6292, allocations: 0.7435 MB / 403.6 MB, free: 11.6 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.6293, allocations: 8 kB / 403.6 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.6293, allocations: 8.281 kB / 403.6 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004001/0.6297, allocations: 85.67 kB / 403.7 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009898/0.6307, allocations: 171.7 kB / 403.9 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003288/0.634, allocations: 2.931 MB / 406.8 MB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.6352, allocations: 44.05 kB / 406.9 MB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.487e-05/0.6353, allocations: 39.94 kB / 406.9 MB, free: 8.043 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (87): * Single equations (assignments): 85 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007325/0.636, allocations: 261.5 kB / 407.2 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.6362, allocations: 90.88 kB / 407.2 MB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001669/0.6379, allocations: 0.5223 MB / 407.8 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.6379, allocations: 4 kB / 407.8 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.638, allocations: 4 kB / 407.8 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.638, allocations: 7.938 kB / 407.8 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003476/0.6415, allocations: 1.47 MB / 409.3 MB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.6415, allocations: 4.031 kB / 409.3 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006386/0.6421, allocations: 83.89 kB / 409.3 MB, free: 5.488 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003306/0.6425, allocations: 69.67 kB / 409.4 MB, free: 5.414 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.074e-05/0.6425, allocations: 12 kB / 409.4 MB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003123/0.6457, allocations: 2.916 MB / 412.3 MB, free: 2.219 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.6457, allocations: 7.969 kB / 412.3 MB, free: 2.211 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002363/0.6481, allocations: 0.9144 MB / 413.3 MB, free: 1.203 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004572/0.6486, allocations: 211.9 kB / 413.5 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001702/0.6488, allocations: 12 kB / 413.5 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007305/0.6495, allocations: 31.98 kB / 413.5 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.6497, allocations: 39.88 kB / 413.5 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.303e-05/0.6497, allocations: 20 kB / 413.6 MB, free: 0.875 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001145/0.6509, allocations: 0.5381 MB / 414.1 MB, free: 352 kB / 330.7 MB Notification: Performance of sort global known variables: time 2.295e-06/0.6509, allocations: 4 kB / 414.1 MB, free: 348 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.001427/0.6523, allocations: 251.9 kB / 414.4 MB, free: 96 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (41): * Single equations (assignments): 39 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003324/0.6557, allocations: 2.135 MB / 416.5 MB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001944/0.6577, allocations: 0.7345 MB / 417.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.6577, allocations: 0 / 417.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.6588, allocations: 478 kB / 417.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/0.6605, allocations: 203.6 kB / 417.9 MB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01533/0.6758, allocations: 11.68 MB / 429.6 MB, free: 368 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2879/0.9638, allocations: 1.037 MB / 430.6 MB, free: 96.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008119/0.9647, allocations: 391.6 kB / 431 MB, free: 96.23 MB / 346.7 MB Notification: Performance of SimCode: time 1.723e-06/0.9647, allocations: 0 / 431 MB, free: 96.23 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.959/3.924, allocations: 25.99 MB / 457 MB, free: 92.97 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat