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.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_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.602/1.602, allocations: 171.2 MB / 186.8 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003704, allocations: 15.98 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08283/0.08324, allocations: 38.75 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3934/0.4767, allocations: 94.05 MB / 366.1 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/0.477, allocations: 86.56 kB / 366.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6834/1.16, allocations: 127.5 MB / 493.8 MB, free: 68.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.826e-06/1.16, allocations: 0 / 493.8 MB, free: 68.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.396e-05/1.161, allocations: 44 kB / 493.8 MB, free: 68.25 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.008113/1.169, allocations: 3.423 MB / 497.2 MB, free: 64.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/1.169, allocations: 12.03 kB / 497.2 MB, free: 64.74 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002857/1.169, allocations: 102.4 kB / 497.3 MB, free: 64.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005377/1.17, allocations: 403.1 kB / 497.7 MB, free: 64.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005693/1.175, allocations: 2.399 MB / 0.4884 GB, free: 61.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.247e-05/1.175, allocations: 40.94 kB / 0.4885 GB, free: 61.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001886/1.176, allocations: 52 kB / 0.4885 GB, free: 61.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002103/1.178, allocations: 0.865 MB / 0.4893 GB, free: 60.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/1.178, allocations: 4 kB / 0.4894 GB, free: 60.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/1.178, allocations: 20 kB / 0.4894 GB, free: 60.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.726e-05/1.178, allocations: 23.98 kB / 0.4894 GB, free: 60.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0024/1.18, allocations: 0.8554 MB / 0.4902 GB, free: 59.87 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00783/1.188, allocations: 3.181 MB / 0.4933 GB, free: 56.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/1.19, allocations: 0.6181 MB / 0.4939 GB, free: 55.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04463/1.235, allocations: 36.02 MB / 0.5291 GB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/1.236, allocations: 389.7 kB / 0.5295 GB, free: 14.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.928e-06/1.236, allocations: 4 kB / 0.5295 GB, free: 14.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.003776/1.24, allocations: 1.47 MB / 0.5309 GB, free: 12.87 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.325e-05/1.24, allocations: 281 kB / 0.5312 GB, free: 12.53 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005178/1.245, allocations: 2.556 MB / 0.5337 GB, free: 9.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001617/1.245, allocations: 33.7 kB / 0.5337 GB, free: 9.934 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001346/1.247, allocations: 1.236 MB / 0.5349 GB, free: 8.691 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000259/1.247, allocations: 165.7 kB / 0.5351 GB, free: 8.527 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.012e-05/1.247, allocations: 16 kB / 0.5351 GB, free: 8.512 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.275e-05/1.247, allocations: 346.8 kB / 0.5354 GB, free: 8.164 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009696/1.248, allocations: 261.8 kB / 0.5357 GB, free: 7.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/1.249, allocations: 0.6673 MB / 0.5363 GB, free: 7.047 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/1.25, allocations: 356.5 kB / 0.5367 GB, free: 6.703 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/1.25, allocations: 4 kB / 0.5367 GB, free: 6.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002739/1.253, allocations: 0.952 MB / 0.5376 GB, free: 5.738 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.134e-05/1.253, allocations: 13.09 kB / 0.5376 GB, free: 5.727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/1.253, allocations: 83.98 kB / 0.5377 GB, free: 5.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.852e-05/1.253, allocations: 20 kB / 0.5377 GB, free: 5.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/1.255, allocations: 212 kB / 0.5379 GB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.909e-05/1.255, allocations: 31.88 kB / 0.538 GB, free: 5.387 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/1.257, allocations: 123 kB / 0.5381 GB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002065/1.257, allocations: 71.94 kB / 0.5381 GB, free: 5.195 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.00143/1.259, allocations: 433 kB / 0.5385 GB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006587/1.259, allocations: 383.4 kB / 0.5389 GB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00528/1.264, allocations: 1.296 MB / 0.5402 GB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/1.265, allocations: 4 kB / 0.5402 GB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/1.265, allocations: 4 kB / 0.5402 GB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/1.265, allocations: 7.938 kB / 0.5402 GB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005765/1.27, allocations: 2.241 MB / 0.5424 GB, free: 0.7539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001366/1.271, allocations: 80.05 kB / 0.5425 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008531/1.271, allocations: 99.8 kB / 0.5426 GB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.869e-06/1.271, allocations: 4 kB / 0.5426 GB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.69e-05/1.272, allocations: 39.94 kB / 0.5426 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/1.272, allocations: 8 kB / 0.5426 GB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.272, allocations: 0 / 0.5426 GB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004075/1.276, allocations: 1.42 MB / 0.544 GB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001559/1.277, allocations: 0.5529 MB / 0.5445 GB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006345/1.278, allocations: 12 kB / 0.5445 GB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/1.279, allocations: 48.02 kB / 0.5446 GB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002803/1.28, allocations: 59.94 kB / 0.5446 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/1.28, allocations: 39.98 kB / 0.5447 GB, free: 14.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004768/1.285, allocations: 1.955 MB / 0.5466 GB, free: 12.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.285, allocations: 0 / 0.5466 GB, free: 12.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002607/1.287, allocations: 0.6439 MB / 0.5472 GB, free: 11.72 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.006497/1.294, allocations: 2.842 MB / 0.55 GB, free: 8.832 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002997/1.297, allocations: 0.8452 MB / 0.5508 GB, free: 7.965 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/1.297, allocations: 0 / 0.5508 GB, free: 7.965 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00138/1.298, allocations: 463.2 kB / 0.5513 GB, free: 7.488 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/1.302, allocations: 0.5003 MB / 0.5518 GB, free: 6.984 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2973/1.599, allocations: 26.84 MB / 0.578 GB, free: 70.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001708/1.601, allocations: 1.729 MB / 0.5797 GB, free: 69.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/1.603, allocations: 1.222 MB / 0.5808 GB, free: 69.88 MB / 362.7 MB Notification: Performance of SimCode: time 1.373e-06/1.603, allocations: 0 / 0.5808 GB, free: 69.88 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.393/4.995, allocations: 49.71 MB / 0.6294 GB, free: 50.01 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat