Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.112/2.112, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004282/0.0004282, allocations: 8 kB / 264.1 MB, free: 2.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.31, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1962/0.5063, allocations: 97.87 MB / 406.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.5067, allocations: 71.97 kB / 406.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6767/1.183, allocations: 125.5 MB / 0.5195 GB, free: 7.629 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.406e-06/1.183, allocations: 4 kB / 0.5195 GB, free: 7.625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000106/1.184, allocations: 44 kB / 0.5196 GB, free: 7.582 MB / 362.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.01094/1.195, allocations: 3.434 MB / 0.5229 GB, free: 4.078 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.918e-05/1.195, allocations: 8.031 kB / 0.5229 GB, free: 4.07 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004518/1.195, allocations: 102.5 kB / 0.523 GB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009542/1.196, allocations: 395.2 kB / 0.5234 GB, free: 3.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00738/1.203, allocations: 2.395 MB / 0.5257 GB, free: 1.102 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.282e-05/1.204, allocations: 37 kB / 0.5258 GB, free: 1.066 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002355/1.204, allocations: 55.89 kB / 0.5258 GB, free: 1.012 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002592/1.206, allocations: 0.8651 MB / 0.5267 GB, free: 116 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/1.207, allocations: 0 / 0.5267 GB, free: 116 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/1.207, allocations: 20 kB / 0.5267 GB, free: 96 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-05/1.207, allocations: 19.98 kB / 0.5267 GB, free: 76 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003017/1.21, allocations: 0.8554 MB / 0.5275 GB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009454/1.219, allocations: 3.196 MB / 0.5307 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002369/1.222, allocations: 0.622 MB / 0.5313 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3579/1.58, allocations: 36 MB / 0.5664 GB, free: 71.62 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001257/1.581, allocations: 396.4 kB / 0.5668 GB, free: 71.57 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 6.232e-06/1.581, allocations: 0 / 0.5668 GB, free: 71.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.003919/1.585, allocations: 1.478 MB / 0.5682 GB, free: 70.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/1.585, allocations: 267.8 kB / 0.5685 GB, free: 70.67 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005667/1.591, allocations: 2.559 MB / 0.571 GB, free: 70.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001745/1.591, allocations: 34.92 kB / 0.571 GB, free: 70.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001781/1.593, allocations: 1.501 MB / 0.5725 GB, free: 70.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003144/1.593, allocations: 167.6 kB / 0.5727 GB, free: 70.06 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.024e-05/1.593, allocations: 16.84 kB / 0.5727 GB, free: 70.06 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.059e-05/1.593, allocations: 343.5 kB / 0.573 GB, free: 69.76 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/1.594, allocations: 261.4 kB / 0.5733 GB, free: 69.76 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/1.596, allocations: 0.6661 MB / 0.5739 GB, free: 69.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/1.597, allocations: 348.4 kB / 0.5742 GB, free: 69.25 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/1.597, allocations: 7.531 kB / 0.5742 GB, free: 69.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003601/1.601, allocations: 1.269 MB / 0.5755 GB, free: 69.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/1.601, allocations: 10.34 kB / 0.5755 GB, free: 69.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/1.601, allocations: 80.62 kB / 0.5756 GB, free: 69.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.163e-05/1.601, allocations: 26.12 kB / 0.5756 GB, free: 69.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/1.602, allocations: 209.9 kB / 0.5758 GB, free: 69.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.779e-05/1.602, allocations: 24.77 kB / 0.5758 GB, free: 69.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002087/1.604, allocations: 120.8 kB / 0.5759 GB, free: 69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002379/1.605, allocations: 74.05 kB / 0.576 GB, free: 69 MB / 394.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.00152/1.606, allocations: 438.1 kB / 0.5764 GB, free: 68.88 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007167/1.607, allocations: 383.5 kB / 0.5768 GB, free: 68.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005452/1.612, allocations: 1.285 MB / 0.578 GB, free: 68.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/1.612, allocations: 3.969 kB / 0.578 GB, free: 68.6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/1.612, allocations: 3.469 kB / 0.5781 GB, free: 68.6 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/1.612, allocations: 3.844 kB / 0.5781 GB, free: 68.6 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005868/1.618, allocations: 2.258 MB / 0.5803 GB, free: 68.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001361/1.619, allocations: 71.98 kB / 0.5803 GB, free: 68.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008969/1.619, allocations: 109.4 kB / 0.5804 GB, free: 68.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.011e-05/1.619, allocations: 2.906 kB / 0.5804 GB, free: 68.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/1.62, allocations: 34.02 kB / 0.5805 GB, free: 68.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/1.62, allocations: 3.25 kB / 0.5805 GB, free: 68.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.62, allocations: 3.953 kB / 0.5805 GB, free: 68.21 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004104/1.624, allocations: 1.412 MB / 0.5819 GB, free: 67.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/1.625, allocations: 0.5613 MB / 0.5824 GB, free: 67.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007831/1.626, allocations: 12.5 kB / 0.5824 GB, free: 67.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/1.628, allocations: 47.38 kB / 0.5825 GB, free: 67.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/1.628, allocations: 61.23 kB / 0.5825 GB, free: 67.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/1.628, allocations: 37.03 kB / 0.5826 GB, free: 67.41 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004411/1.633, allocations: 1.956 MB / 0.5845 GB, free: 67.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.633, allocations: 0 / 0.5845 GB, free: 67.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002486/1.635, allocations: 0.6484 MB / 0.5851 GB, free: 67.22 MB / 394.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.006054/1.641, allocations: 2.833 MB / 0.5879 GB, free: 66.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002724/1.644, allocations: 0.8547 MB / 0.5887 GB, free: 66.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/1.644, allocations: 0 / 0.5887 GB, free: 66.03 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/1.645, allocations: 466.8 kB / 0.5891 GB, free: 65.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002982/1.648, allocations: 0.5006 MB / 0.5896 GB, free: 65.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04991/1.698, allocations: 26.78 MB / 0.6158 GB, free: 47.43 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/1.7, allocations: 1.729 MB / 0.6175 GB, free: 46.71 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002068/1.702, allocations: 383.3 kB / 0.6178 GB, free: 46.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/1.704, allocations: 1.216 MB / 0.619 GB, free: 46.67 MB / 394.7 MB Notification: Performance of SimCode: time 1.422e-06/1.704, allocations: 2.344 kB / 0.619 GB, free: 46.67 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1385/1.842, allocations: 59.54 MB / 0.6772 GB, free: 2.34 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000283/1.843, allocations: 187.8 kB / 0.6773 GB, free: 2.098 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.041/7.884, allocations: 0 / 0.6773 GB, free: 2.098 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat