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.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.21/2.21, allocations: 194.9 MB / 211.1 MB, free: 7.574 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005546/0.0005536, allocations: 8 kB / 264.1 MB, free: 2.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3101, allocations: 44.49 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1757/0.4859, allocations: 97.89 MB / 406.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.4862, allocations: 79.95 kB / 406.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6744/1.161, allocations: 127.3 MB / 0.5213 GB, free: 5.949 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.886e-06/1.161, allocations: 0 / 0.5213 GB, free: 5.949 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001044/1.161, allocations: 44 kB / 0.5214 GB, free: 5.906 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.01102/1.172, allocations: 3.571 MB / 0.5249 GB, free: 2.262 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/1.172, allocations: 12.03 kB / 0.5249 GB, free: 2.25 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004129/1.172, allocations: 102.4 kB / 0.525 GB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/1.173, allocations: 414.9 kB / 0.5254 GB, free: 1.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007462/1.181, allocations: 2.456 MB / 0.5278 GB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.76e-05/1.181, allocations: 40.98 kB / 0.5278 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002411/1.181, allocations: 59.89 kB / 0.5279 GB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00263/1.184, allocations: 0.8611 MB / 0.5287 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/1.184, allocations: 0 / 0.5287 GB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/1.184, allocations: 27.98 kB / 0.5287 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.481e-05/1.184, allocations: 16 kB / 0.5288 GB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002912/1.187, allocations: 0.8593 MB / 0.5296 GB, free: 13.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01035/1.197, allocations: 3.28 MB / 0.5328 GB, free: 9.945 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/1.2, allocations: 0.6142 MB / 0.5334 GB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3333/1.533, allocations: 36.05 MB / 0.5686 GB, free: 68.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001807/1.535, allocations: 392.3 kB / 0.569 GB, free: 68.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 6.692e-06/1.535, allocations: 0 / 0.569 GB, free: 68.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.006018/1.541, allocations: 1.492 MB / 0.5704 GB, free: 68.17 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/1.541, allocations: 270.5 kB / 0.5707 GB, free: 67.86 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008937/1.55, allocations: 2.712 MB / 0.5733 GB, free: 67.58 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000224/1.551, allocations: 35.17 kB / 0.5734 GB, free: 67.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002985/1.554, allocations: 1.578 MB / 0.5749 GB, free: 67.33 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004577/1.554, allocations: 174 kB / 0.5751 GB, free: 67.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/1.554, allocations: 18.59 kB / 0.5751 GB, free: 67.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/1.554, allocations: 338.6 kB / 0.5754 GB, free: 66.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/1.556, allocations: 261 kB / 0.5757 GB, free: 66.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001834/1.558, allocations: 0.6635 MB / 0.5763 GB, free: 66.44 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001811/1.56, allocations: 349.2 kB / 0.5767 GB, free: 66.44 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-05/1.56, allocations: 3.938 kB / 0.5767 GB, free: 66.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.005684/1.565, allocations: 1.284 MB / 0.5779 GB, free: 66.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.721e-05/1.566, allocations: 10.5 kB / 0.5779 GB, free: 66.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002313/1.566, allocations: 82.55 kB / 0.578 GB, free: 66.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.271e-05/1.566, allocations: 20.28 kB / 0.578 GB, free: 66.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00185/1.568, allocations: 210.6 kB / 0.5782 GB, free: 66.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-05/1.568, allocations: 27.02 kB / 0.5782 GB, free: 66.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003457/1.571, allocations: 131.4 kB / 0.5784 GB, free: 66.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003467/1.572, allocations: 67.52 kB / 0.5784 GB, free: 66.18 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.002165/1.574, allocations: 458.9 kB / 0.5789 GB, free: 66.06 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/1.575, allocations: 402.1 kB / 0.5793 GB, free: 65.86 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008273/1.583, allocations: 1.298 MB / 0.5805 GB, free: 65.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/1.584, allocations: 5.844 kB / 0.5805 GB, free: 65.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/1.584, allocations: 2.375 kB / 0.5805 GB, free: 65.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/1.584, allocations: 3.609 kB / 0.5805 GB, free: 65.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009461/1.593, allocations: 2.342 MB / 0.5828 GB, free: 65.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002239/1.593, allocations: 66.77 kB / 0.5829 GB, free: 65.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/1.595, allocations: 105.6 kB / 0.583 GB, free: 65.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.259e-05/1.595, allocations: 3.5 kB / 0.583 GB, free: 65.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/1.595, allocations: 33.92 kB / 0.583 GB, free: 65.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.767e-06/1.595, allocations: 0.5 kB / 0.583 GB, free: 65.38 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/1.595, allocations: 3.953 kB / 0.583 GB, free: 65.37 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005983/1.601, allocations: 1.439 MB / 0.5844 GB, free: 64.92 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002186/1.603, allocations: 0.5137 MB / 0.5849 GB, free: 64.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001398/1.605, allocations: 14.66 kB / 0.5849 GB, free: 64.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002961/1.608, allocations: 49.81 kB / 0.585 GB, free: 64.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003987/1.608, allocations: 59.06 kB / 0.5851 GB, free: 64.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/1.608, allocations: 41.38 kB / 0.5851 GB, free: 64.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007485/1.616, allocations: 2.067 MB / 0.5871 GB, free: 64.44 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.616, allocations: 0 / 0.5871 GB, free: 64.44 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004182/1.62, allocations: 0.6644 MB / 0.5878 GB, free: 64.43 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.009317/1.629, allocations: 2.886 MB / 0.5906 GB, free: 63.37 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00424/1.634, allocations: 0.8549 MB / 0.5914 GB, free: 63.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/1.634, allocations: 7.219 kB / 0.5914 GB, free: 63.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001916/1.636, allocations: 461 kB / 0.5919 GB, free: 63.11 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005075/1.641, allocations: 0.5185 MB / 0.5924 GB, free: 63.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09049/1.731, allocations: 27.9 MB / 0.6196 GB, free: 43.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002443/1.734, allocations: 1.783 MB / 0.6214 GB, free: 43.07 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003423/1.737, allocations: 387.8 kB / 0.6217 GB, free: 43.04 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003336/1.741, allocations: 1.258 MB / 0.6229 GB, free: 43.03 MB / 394.7 MB Notification: Performance of SimCode: time 1.753e-06/1.741, allocations: 0 / 0.6229 GB, free: 43.03 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1885/1.929, allocations: 62.57 MB / 0.6841 GB, free: 11.53 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002951/1.93, allocations: 190.1 kB / 0.6842 GB, free: 11.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.27/8.2, allocations: 0 / 0.6842 GB, free: 11.29 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat