Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.569/1.569, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005026/0.0005026, allocations: 8 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1099, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3632/0.4731, allocations: 94.07 MB / 366.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.4735, allocations: 78.27 kB / 366.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6472/1.121, allocations: 129.4 MB / 495.6 MB, free: 66.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.121, allocations: 0 / 495.6 MB, free: 66.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.985e-05/1.121, allocations: 48 kB / 495.7 MB, free: 66.4 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007423/1.128, allocations: 3.575 MB / 499.3 MB, free: 62.76 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/1.128, allocations: 8.031 kB / 499.3 MB, free: 62.75 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002195/1.129, allocations: 98.5 kB / 499.4 MB, free: 62.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005018/1.129, allocations: 414.9 kB / 499.8 MB, free: 62.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005766/1.135, allocations: 2.445 MB / 0.4904 GB, free: 59.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.546e-05/1.135, allocations: 37 kB / 0.4905 GB, free: 59.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/1.135, allocations: 59.91 kB / 0.4905 GB, free: 59.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/1.137, allocations: 0.869 MB / 0.4914 GB, free: 58.72 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/1.137, allocations: 0 / 0.4914 GB, free: 58.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/1.137, allocations: 20 kB / 0.4914 GB, free: 58.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.512e-05/1.137, allocations: 23.98 kB / 0.4914 GB, free: 58.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002377/1.14, allocations: 0.8592 MB / 0.4923 GB, free: 57.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007656/1.147, allocations: 3.287 MB / 0.4955 GB, free: 54.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/1.149, allocations: 0.618 MB / 0.4961 GB, free: 53.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04358/1.193, allocations: 36.05 MB / 0.5313 GB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/1.194, allocations: 385.6 kB / 0.5317 GB, free: 12.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.466e-06/1.194, allocations: 0 / 0.5317 GB, free: 12.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.003771/1.198, allocations: 1.497 MB / 0.5331 GB, free: 10.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.784e-05/1.198, allocations: 273 kB / 0.5334 GB, free: 10.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004924/1.203, allocations: 2.706 MB / 0.536 GB, free: 7.629 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000157/1.203, allocations: 45.64 kB / 0.5361 GB, free: 7.578 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001315/1.205, allocations: 1.294 MB / 0.5373 GB, free: 6.277 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000267/1.205, allocations: 165.7 kB / 0.5375 GB, free: 6.113 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.561e-05/1.205, allocations: 19.98 kB / 0.5375 GB, free: 6.094 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.571e-05/1.205, allocations: 342.8 kB / 0.5378 GB, free: 5.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009856/1.206, allocations: 261.8 kB / 0.5381 GB, free: 5.496 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/1.207, allocations: 0.6674 MB / 0.5387 GB, free: 4.633 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/1.208, allocations: 352.5 kB / 0.5391 GB, free: 4.289 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-06/1.208, allocations: 4 kB / 0.5391 GB, free: 4.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002749/1.211, allocations: 0.9485 MB / 0.54 GB, free: 3.332 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/1.211, allocations: 16.03 kB / 0.54 GB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00015/1.211, allocations: 79.98 kB / 0.5401 GB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.63e-05/1.211, allocations: 20 kB / 0.5401 GB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/1.213, allocations: 211.6 kB / 0.5403 GB, free: 3.012 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.844e-05/1.213, allocations: 31.88 kB / 0.5403 GB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/1.215, allocations: 130.9 kB / 0.5405 GB, free: 2.852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/1.215, allocations: 60 kB / 0.5405 GB, free: 2.793 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001346/1.216, allocations: 464.9 kB / 0.541 GB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006695/1.217, allocations: 399.1 kB / 0.5413 GB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005093/1.222, allocations: 1.297 MB / 0.5426 GB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/1.222, allocations: 7.938 kB / 0.5426 GB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/1.222, allocations: 4 kB / 0.5426 GB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/1.222, allocations: 3.953 kB / 0.5426 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00629/1.228, allocations: 2.334 MB / 0.5449 GB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001572/1.229, allocations: 67.98 kB / 0.545 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000951/1.23, allocations: 111.9 kB / 0.5451 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/1.23, allocations: 0 / 0.5451 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.576e-05/1.23, allocations: 35.95 kB / 0.5451 GB, free: 14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.663e-06/1.23, allocations: 0 / 0.5451 GB, free: 14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.23, allocations: 0 / 0.5451 GB, free: 14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004237/1.234, allocations: 1.443 MB / 0.5465 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001484/1.236, allocations: 0.5156 MB / 0.547 GB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005715/1.236, allocations: 11.94 kB / 0.547 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/1.238, allocations: 52.02 kB / 0.5471 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/1.238, allocations: 55.94 kB / 0.5471 GB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/1.238, allocations: 39.98 kB / 0.5472 GB, free: 11.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004721/1.243, allocations: 2.066 MB / 0.5492 GB, free: 9.758 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.243, allocations: 0 / 0.5492 GB, free: 9.758 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002685/1.245, allocations: 0.6672 MB / 0.5498 GB, free: 9.09 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006552/1.252, allocations: 2.9 MB / 0.5527 GB, free: 6.152 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002873/1.255, allocations: 0.853 MB / 0.5535 GB, free: 5.277 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/1.255, allocations: 0 / 0.5535 GB, free: 5.277 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001349/1.256, allocations: 463.2 kB / 0.554 GB, free: 4.801 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003215/1.26, allocations: 0.5252 MB / 0.5545 GB, free: 4.273 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.301/1.561, allocations: 27.95 MB / 0.5818 GB, free: 66.24 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/1.562, allocations: 1.782 MB / 0.5835 GB, free: 65.51 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001867/1.564, allocations: 1.265 MB / 0.5847 GB, free: 65.51 MB / 362.7 MB Notification: Performance of SimCode: time 1.483e-06/1.564, allocations: 3.094 kB / 0.5847 GB, free: 65.51 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.422/4.986, allocations: 51.74 MB / 0.6353 GB, free: 43.2 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat