Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.236/2.236, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004241/0.0004244, allocations: 16 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3393, allocations: 54.85 MB / 369.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1803/0.5197, allocations: 100.6 MB / 469.9 MB, free: 6 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003269/0.5201, allocations: 87.78 kB / 470 MB, free: 5.918 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.198/2.718, allocations: 388.7 MB / 0.8386 GB, free: 48.66 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.967e-06/2.718, allocations: 2.719 kB / 0.8386 GB, free: 48.66 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007133/2.719, allocations: 247.6 kB / 0.8388 GB, free: 48.64 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3353 * Number of variables: 3353 Notification: Performance of Generate backend data structure: time 0.05293/2.772, allocations: 10.89 MB / 0.8494 GB, free: 45.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/2.772, allocations: 11.25 kB / 0.8494 GB, free: 45.34 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008321/2.78, allocations: 1.743 MB / 0.8511 GB, free: 45.22 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06609/2.846, allocations: 8.421 MB / 0.8594 GB, free: 44.57 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02246/2.869, allocations: 7.251 MB / 0.8665 GB, free: 43.67 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001562/2.87, allocations: 0.8603 MB / 0.8673 GB, free: 43.64 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006251/2.877, allocations: 1.122 MB / 0.8684 GB, free: 43.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06764/2.944, allocations: 21.11 MB / 0.889 GB, free: 42.37 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006566/2.945, allocations: 18.47 kB / 0.889 GB, free: 42.37 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005186/2.95, allocations: 491.1 kB / 0.8895 GB, free: 42.37 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00128/2.952, allocations: 0.8466 MB / 0.8903 GB, free: 42.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05716/3.009, allocations: 19.84 MB / 0.9097 GB, free: 42.22 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1621/3.171, allocations: 59.83 MB / 0.9681 GB, free: 9.199 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05691/3.228, allocations: 24.71 MB / 0.9923 GB, free: 4.199 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001911/3.23, allocations: 363.6 kB / 0.9926 GB, free: 3.91 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002295/3.23, allocations: 138.4 kB / 0.9927 GB, free: 3.766 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1196): time 1.824e-05/3.23, allocations: 0 / 0.9927 GB, free: 3.766 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1196): time 0.5002/3.731, allocations: 38.29 MB / 1.03 GB, free: 70.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001482/3.731, allocations: 153.1 kB / 1.03 GB, free: 70.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008912/3.74, allocations: 2.664 MB / 1.033 GB, free: 70.56 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.003117/3.743, allocations: 187.3 kB / 1.033 GB, free: 70.53 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003292/3.746, allocations: 3.259 MB / 1.036 GB, free: 69.42 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.008231/3.754, allocations: 3.903 MB / 1.04 GB, free: 67.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003114/3.758, allocations: 172 kB / 1.04 GB, free: 67.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.00162/3.759, allocations: 0.7206 MB / 1.041 GB, free: 66.77 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02373/3.783, allocations: 7.095 MB / 1.048 GB, free: 66.75 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02317/3.806, allocations: 8.015 MB / 1.056 GB, free: 66.21 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0306/3.837, allocations: 8.354 MB / 1.064 GB, free: 66.08 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.741e-05/3.837, allocations: 6.812 kB / 1.064 GB, free: 66.08 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1268) (initialization): time 0.0764/3.914, allocations: 18.69 MB / 1.082 GB, free: 65.45 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.407e-05/3.914, allocations: 10.19 kB / 1.082 GB, free: 65.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/3.914, allocations: 10.59 kB / 1.082 GB, free: 65.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01628/3.93, allocations: 3.78 MB / 1.086 GB, free: 65.29 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02405/3.954, allocations: 1.915 MB / 1.088 GB, free: 65.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02957/3.984, allocations: 21.64 MB / 1.109 GB, free: 50.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01026/3.994, allocations: 1.112 MB / 1.11 GB, free: 49.66 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003165/3.997, allocations: 337.1 kB / 1.11 GB, free: 49.58 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (933): * Single equations (assignments): 818 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 99 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 10 {6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01522/4.013, allocations: 4.525 MB / 1.115 GB, free: 47.65 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003949/4.017, allocations: 0.5577 MB / 1.115 GB, free: 47.35 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06253/4.079, allocations: 20.43 MB / 1.135 GB, free: 39.02 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004652/4.08, allocations: 295 kB / 1.135 GB, free: 38.88 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-05/4.08, allocations: 0 / 1.135 GB, free: 38.88 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002511/4.08, allocations: 54.36 kB / 1.135 GB, free: 38.88 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1112/4.191, allocations: 38.7 MB / 1.173 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001828/4.191, allocations: 0 / 1.173 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01556/4.207, allocations: 1.774 MB / 1.175 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01364/4.221, allocations: 3.746 MB / 1.179 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003885/4.225, allocations: 253.8 kB / 1.179 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06408/4.289, allocations: 21.58 MB / 1.2 GB, free: 6.406 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/4.289, allocations: 3.469 kB / 1.2 GB, free: 6.406 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4877/4.777, allocations: 30.46 MB / 1.23 GB, free: 86.95 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002097/4.779, allocations: 0.8483 MB / 1.231 GB, free: 86.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003707/4.783, allocations: 173.3 kB / 1.231 GB, free: 86.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009537/4.792, allocations: 0.5949 MB / 1.231 GB, free: 86.79 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004293/4.796, allocations: 0.8464 MB / 1.232 GB, free: 86.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002961/4.8, allocations: 319.4 kB / 1.232 GB, free: 86.77 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005123/4.805, allocations: 2.065 MB / 1.234 GB, free: 86.63 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.833e-06/4.805, allocations: 0 / 1.234 GB, free: 86.63 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01422/4.819, allocations: 3.082 MB / 1.237 GB, free: 86.32 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (921): * Single equations (assignments): 806 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 99 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 10 {6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.08278/4.902, allocations: 31.3 MB / 1.268 GB, free: 84.81 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.04657/4.948, allocations: 17.8 MB / 1.285 GB, free: 80.72 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/4.948, allocations: 0 / 1.285 GB, free: 80.72 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02622/4.975, allocations: 9.82 MB / 1.295 GB, free: 76.82 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01047/4.985, allocations: 0.9724 MB / 1.296 GB, free: 76.52 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.203/5.188, allocations: 86.62 MB / 1.381 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01801/5.206, allocations: 7.961 MB / 1.388 GB, free: 4.18 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01441/5.221, allocations: 4.133 MB / 1.392 GB, free: 348 kB / 0.5261 GB Notification: Performance of SimCode: time 1.623e-06/5.221, allocations: 0 / 1.392 GB, free: 348 kB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.538/14.76, allocations: 1.195 GB / 2.587 GB, free: 25.01 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection_res.mat does not exist to compare? outputFormat=mat