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.DCPM_withLosses.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.DCPM_withLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.529/1.529, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003446, allocations: 12 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08262/0.083, allocations: 38.78 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4055/0.4886, allocations: 85.14 MB / 357.3 MB, free: 4.562 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.4889, allocations: 85.77 kB / 357.3 MB, free: 4.516 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2156/0.7045, allocations: 42.84 MB / 400.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.7045, allocations: 0 / 400.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001845/0.7048, allocations: 40 kB / 400.2 MB, free: 15.55 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.006375/0.7111, allocations: 1.837 MB / 402.1 MB, free: 13.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.7112, allocations: 12.02 kB / 402.1 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007902/0.712, allocations: 215.9 kB / 402.3 MB, free: 13.42 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001616/0.7136, allocations: 289.7 kB / 402.6 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004561/0.7182, allocations: 1.208 MB / 403.8 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.7185, allocations: 119.1 kB / 403.9 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005834/0.7191, allocations: 159.9 kB / 404 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005099/0.7242, allocations: 1.5 MB / 405.5 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-05/0.7243, allocations: 7.906 kB / 405.5 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002221/0.7246, allocations: 60 kB / 405.6 MB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.108e-05/0.7246, allocations: 40 kB / 405.6 MB, free: 9.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004189/0.7288, allocations: 1.076 MB / 406.7 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01567/0.7445, allocations: 6.427 MB / 413.2 MB, free: 2.109 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002628/0.7472, allocations: 0.6351 MB / 413.8 MB, free: 1.461 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.284e-05/0.7474, allocations: 20.47 kB / 413.8 MB, free: 1.441 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.899e-05/0.7474, allocations: 43.08 kB / 413.8 MB, free: 1.391 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 5.52e-06/0.7474, allocations: 3.984 kB / 413.9 MB, free: 1.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.009093/0.7565, allocations: 2.51 MB / 416.4 MB, free: 14.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.121e-05/0.7567, allocations: 111.5 kB / 416.5 MB, free: 14.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002568/0.7593, allocations: 1.096 MB / 417.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001302/0.7594, allocations: 41.7 kB / 417.6 MB, free: 13.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008064/0.7602, allocations: 0.835 MB / 418.4 MB, free: 12.65 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003255/0.7606, allocations: 260.3 kB / 418.7 MB, free: 12.39 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.813e-05/0.7607, allocations: 20 kB / 418.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.7609, allocations: 366.7 kB / 419.1 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.762, allocations: 302.5 kB / 419.4 MB, free: 11.71 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.7634, allocations: 0.749 MB / 420.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.7647, allocations: 419 kB / 420.5 MB, free: 10.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.7648, allocations: 4 kB / 420.5 MB, free: 10.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003933/0.7687, allocations: 1.233 MB / 421.8 MB, free: 9.086 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.7688, allocations: 12 kB / 421.8 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.462e-05/0.7688, allocations: 16.53 kB / 421.8 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008213/0.7696, allocations: 142.5 kB / 421.9 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/0.7713, allocations: 263.6 kB / 422.2 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005747/0.7771, allocations: 4.352 MB / 426.5 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001745/0.7789, allocations: 64.09 kB / 426.6 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/0.779, allocations: 56 kB / 426.7 MB, free: 3.781 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.00106/0.7801, allocations: 353.5 kB / 427 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004001/0.7805, allocations: 146.2 kB / 427.1 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003272/0.7838, allocations: 0.8882 MB / 428 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.7839, allocations: 4 kB / 428 MB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.7839, allocations: 8 kB / 428 MB, free: 2.359 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.7839, allocations: 3.984 kB / 428 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2519/1.036, allocations: 2.362 MB / 430.4 MB, free: 85.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/1.036, allocations: 3.781 kB / 430.4 MB, free: 85.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001218/1.037, allocations: 135.3 kB / 430.5 MB, free: 85.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007979/1.038, allocations: 139.8 kB / 430.7 MB, free: 85.22 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.913e-05/1.038, allocations: 17.89 kB / 430.7 MB, free: 85.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005298/1.043, allocations: 4.5 MB / 435.2 MB, free: 81.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/1.043, allocations: 6.938 kB / 435.2 MB, free: 81.43 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004468/1.048, allocations: 1.567 MB / 436.8 MB, free: 80.87 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008031/1.049, allocations: 283.7 kB / 437.1 MB, free: 80.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003298/1.049, allocations: 17.8 kB / 437.1 MB, free: 80.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/1.05, allocations: 49.08 kB / 437.1 MB, free: 80.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/1.05, allocations: 58.8 kB / 437.2 MB, free: 80.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.13e-05/1.05, allocations: 25.53 kB / 437.2 MB, free: 80.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001821/1.052, allocations: 0.8303 MB / 438 MB, free: 80.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.052, allocations: 0 / 438 MB, free: 80.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002135/1.054, allocations: 372.4 kB / 438.4 MB, free: 80.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005166/1.06, allocations: 3.322 MB / 441.7 MB, free: 78.67 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003056/1.063, allocations: 1.158 MB / 442.9 MB, free: 78.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.305e-06/1.063, allocations: 4.062 kB / 442.9 MB, free: 78.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/1.064, allocations: 0.6988 MB / 443.6 MB, free: 77.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/1.067, allocations: 336.9 kB / 443.9 MB, free: 77.97 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02572/1.093, allocations: 18.87 MB / 462.8 MB, free: 64.27 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008464/1.094, allocations: 1.248 MB / 464 MB, free: 63.54 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/1.095, allocations: 0.6266 MB / 464.7 MB, free: 63.53 MB / 346.7 MB Notification: Performance of SimCode: time 2.786e-06/1.095, allocations: 0 / 464.7 MB, free: 63.53 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.227/4.322, allocations: 47.26 MB / 0.4999 GB, free: 41.24 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.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat