Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.658/1.658, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005193/0.0005194, allocations: 8 kB / 233.4 MB, free: 2.281 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1097, allocations: 38.76 MB / 272.1 MB, free: 11.44 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4221/0.5319, allocations: 94.05 MB / 366.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.5322, allocations: 76.03 kB / 366.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6728/1.205, allocations: 127.6 MB / 493.8 MB, free: 67.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.437e-06/1.205, allocations: 0 / 493.8 MB, free: 67.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.029e-05/1.205, allocations: 44 kB / 493.8 MB, free: 67.49 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.008875/1.214, allocations: 3.427 MB / 497.3 MB, free: 63.99 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/1.214, allocations: 8.031 kB / 497.3 MB, free: 63.98 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000364/1.214, allocations: 98.5 kB / 497.4 MB, free: 63.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007722/1.215, allocations: 403.1 kB / 497.8 MB, free: 63.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006566/1.222, allocations: 2.398 MB / 0.4884 GB, free: 61.01 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.709e-05/1.222, allocations: 33 kB / 0.4885 GB, free: 60.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002415/1.222, allocations: 59.98 kB / 0.4885 GB, free: 60.92 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002365/1.225, allocations: 0.8573 MB / 0.4894 GB, free: 60.03 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/1.225, allocations: 3.984 kB / 0.4894 GB, free: 60.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/1.225, allocations: 20 kB / 0.4894 GB, free: 60 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.915e-05/1.225, allocations: 19.98 kB / 0.4894 GB, free: 59.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002585/1.227, allocations: 0.8593 MB / 0.4903 GB, free: 59.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00932/1.237, allocations: 3.185 MB / 0.4934 GB, free: 55.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002114/1.239, allocations: 0.6181 MB / 0.494 GB, free: 55.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04606/1.285, allocations: 36.02 MB / 0.5291 GB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/1.286, allocations: 389.7 kB / 0.5295 GB, free: 13.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.138e-06/1.286, allocations: 0 / 0.5295 GB, free: 13.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.00386/1.29, allocations: 1.481 MB / 0.531 GB, free: 12.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.367e-05/1.29, allocations: 269 kB / 0.5312 GB, free: 11.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004723/1.295, allocations: 2.556 MB / 0.5337 GB, free: 9.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000166/1.295, allocations: 37.7 kB / 0.5337 GB, free: 9.188 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001627/1.297, allocations: 1.501 MB / 0.5352 GB, free: 7.676 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002757/1.297, allocations: 161.7 kB / 0.5354 GB, free: 7.516 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.131e-05/1.297, allocations: 19.94 kB / 0.5354 GB, free: 7.496 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.719e-05/1.297, allocations: 341.9 kB / 0.5357 GB, free: 7.156 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009816/1.298, allocations: 265.8 kB / 0.536 GB, free: 6.898 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/1.3, allocations: 0.6712 MB / 0.5366 GB, free: 6.031 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/1.301, allocations: 352.5 kB / 0.537 GB, free: 5.691 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/1.301, allocations: 0 / 0.537 GB, free: 5.691 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003733/1.304, allocations: 1.265 MB / 0.5382 GB, free: 4.414 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.432e-05/1.305, allocations: 17.03 kB / 0.5382 GB, free: 4.398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001534/1.305, allocations: 79.98 kB / 0.5383 GB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.76e-05/1.305, allocations: 23.98 kB / 0.5383 GB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/1.306, allocations: 212.1 kB / 0.5385 GB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.314e-05/1.306, allocations: 35.81 kB / 0.5385 GB, free: 4.055 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/1.308, allocations: 119 kB / 0.5387 GB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002434/1.309, allocations: 71.98 kB / 0.5387 GB, free: 3.867 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.001425/1.31, allocations: 436.9 kB / 0.5391 GB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006997/1.311, allocations: 383.4 kB / 0.5395 GB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005379/1.316, allocations: 1.28 MB / 0.5408 GB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/1.316, allocations: 4 kB / 0.5408 GB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/1.316, allocations: 4 kB / 0.5408 GB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/1.316, allocations: 7.938 kB / 0.5408 GB, free: 1.754 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006801/1.323, allocations: 2.237 MB / 0.543 GB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002345/1.323, allocations: 76.02 kB / 0.543 GB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/1.325, allocations: 103.8 kB / 0.5431 GB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.55e-05/1.325, allocations: 7.938 kB / 0.5431 GB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/1.325, allocations: 39.94 kB / 0.5432 GB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.958e-06/1.325, allocations: 8 kB / 0.5432 GB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.325, allocations: 0 / 0.5432 GB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005764/1.331, allocations: 1.428 MB / 0.5446 GB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00216/1.333, allocations: 0.5529 MB / 0.5451 GB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001038/1.334, allocations: 12 kB / 0.5451 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002413/1.336, allocations: 44.02 kB / 0.5452 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003871/1.337, allocations: 63.94 kB / 0.5452 GB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001742/1.337, allocations: 39.98 kB / 0.5453 GB, free: 12.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007524/1.345, allocations: 1.951 MB / 0.5472 GB, free: 11.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.363e-06/1.345, allocations: 0 / 0.5472 GB, free: 11.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003953/1.349, allocations: 0.6517 MB / 0.5478 GB, free: 10.39 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.009692/1.358, allocations: 2.839 MB / 0.5506 GB, free: 7.508 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003912/1.362, allocations: 0.8452 MB / 0.5514 GB, free: 6.641 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/1.362, allocations: 0 / 0.5514 GB, free: 6.641 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/1.364, allocations: 463.2 kB / 0.5519 GB, free: 6.164 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004034/1.368, allocations: 0.4984 MB / 0.5523 GB, free: 5.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3257/1.694, allocations: 26.76 MB / 0.5785 GB, free: 68.24 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001559/1.696, allocations: 1.73 MB / 0.5802 GB, free: 67.51 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002118/1.698, allocations: 385.3 kB / 0.5805 GB, free: 67.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001751/1.699, allocations: 1.213 MB / 0.5817 GB, free: 67.48 MB / 362.7 MB Notification: Performance of SimCode: time 1.292e-06/1.7, allocations: 0 / 0.5817 GB, free: 67.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1378/1.837, allocations: 59.53 MB / 0.6399 GB, free: 36.47 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/1.838, allocations: 191.8 kB / 0.64 GB, free: 36.23 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.687/7.525, allocations: 0 / 0.64 GB, free: 36.23 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat