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.Ideal.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.Ideal,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.651/2.651, allocations: 235 MB / 248.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.406e-05/3.422e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4024/0.4025, allocations: 54.85 MB / 364.6 MB, free: 5.402 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1975/0.6, allocations: 106.5 MB / 471.1 MB, free: 5.914 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003726/0.6004, allocations: 84.86 kB / 471.2 MB, free: 5.832 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.707/3.308, allocations: 470.2 MB / 0.9193 GB, free: 51.98 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.284e-06/3.308, allocations: 0 / 0.9193 GB, free: 51.98 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.00122/3.309, allocations: 299.2 kB / 0.9196 GB, free: 51.96 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3915 * Number of variables: 3915 Notification: Performance of Generate backend data structure: time 0.07229/3.382, allocations: 13.43 MB / 0.9327 GB, free: 48.34 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/3.382, allocations: 10.06 kB / 0.9327 GB, free: 48.34 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009982/3.392, allocations: 2.008 MB / 0.9347 GB, free: 48.21 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06811/3.46, allocations: 8.5 MB / 0.943 GB, free: 47.45 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03176/3.492, allocations: 8.572 MB / 0.9514 GB, free: 46.34 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002031/3.494, allocations: 1.021 MB / 0.9523 GB, free: 46.32 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007851/3.502, allocations: 1.308 MB / 0.9536 GB, free: 46.31 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08608/3.588, allocations: 24.56 MB / 0.9776 GB, free: 44.67 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001015/3.589, allocations: 17.91 kB / 0.9776 GB, free: 44.66 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007088/3.596, allocations: 0.5647 MB / 0.9782 GB, free: 44.66 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001564/3.598, allocations: 0.9292 MB / 0.9791 GB, free: 44.64 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06735/3.665, allocations: 22.02 MB / 1.001 GB, free: 41.31 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2331/3.898, allocations: 75.88 MB / 1.075 GB, free: 6.281 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5646/4.463, allocations: 21.42 MB / 1.096 GB, free: 56.72 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03091/4.494, allocations: 11.5 MB / 1.107 GB, free: 56.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1239/4.618, allocations: 37.24 MB / 1.143 GB, free: 55.13 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002083/4.618, allocations: 131.9 kB / 1.143 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1188): time 3.07e-05/4.618, allocations: 0 / 1.143 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1188): time 0.0676/4.686, allocations: 22.18 MB / 1.165 GB, free: 50.25 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/4.686, allocations: 173.3 kB / 1.165 GB, free: 50.15 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006877/4.693, allocations: 2.915 MB / 1.168 GB, free: 49.14 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002824/4.696, allocations: 182.7 kB / 1.168 GB, free: 49 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00339/4.699, allocations: 4.268 MB / 1.172 GB, free: 46.34 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.007298/4.706, allocations: 3.862 MB / 1.176 GB, free: 43.32 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002471/4.709, allocations: 171 kB / 1.176 GB, free: 43.19 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001409/4.71, allocations: 0.7645 MB / 1.177 GB, free: 42.68 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02064/4.731, allocations: 7.899 MB / 1.185 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02724/4.758, allocations: 9.401 MB / 1.194 GB, free: 35.04 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03225/4.791, allocations: 9.251 MB / 1.203 GB, free: 31.45 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-05/4.791, allocations: 11.62 kB / 1.203 GB, free: 31.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1360) (initialization): time 0.07851/4.869, allocations: 23.38 MB / 1.226 GB, free: 22.19 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.464e-05/4.869, allocations: 20 kB / 1.226 GB, free: 22.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001251/4.87, allocations: 34.97 kB / 1.226 GB, free: 22.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03529/4.905, allocations: 10.27 MB / 1.236 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01489/4.92, allocations: 1.355 MB / 1.237 GB, free: 12.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0526/4.973, allocations: 19.7 MB / 1.256 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/4.984, allocations: 1.111 MB / 1.258 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003701/4.988, allocations: 389.8 kB / 1.258 GB, free: 10.87 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (695): * Single equations (assignments): 628 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 63 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,99 312} Notification: Performance of prepare postOptimizeDAE: time 0.007179/4.995, allocations: 0.5479 MB / 1.258 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005199/5.001, allocations: 0.5901 MB / 1.259 GB, free: 9.797 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5986/5.599, allocations: 26.57 MB / 1.285 GB, free: 74.21 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008092/5.6, allocations: 328.4 kB / 1.285 GB, free: 74.21 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.914e-05/5.6, allocations: 6.188 kB / 1.285 GB, free: 74.21 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002905/5.601, allocations: 48.28 kB / 1.285 GB, free: 74.21 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1575/5.758, allocations: 43.28 MB / 1.328 GB, free: 73.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002204/5.758, allocations: 2.344 kB / 1.328 GB, free: 73.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01022/5.769, allocations: 1.086 MB / 1.329 GB, free: 73.29 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03564/5.804, allocations: 10.24 MB / 1.339 GB, free: 72.93 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003639/5.808, allocations: 250 kB / 1.339 GB, free: 72.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04777/5.856, allocations: 19.39 MB / 1.358 GB, free: 68.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/5.856, allocations: 3.062 kB / 1.358 GB, free: 68.33 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1022/5.958, allocations: 35.82 MB / 1.393 GB, free: 53.54 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01085/5.969, allocations: 2.669 MB / 1.395 GB, free: 52.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004583/5.974, allocations: 166 kB / 1.396 GB, free: 52.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01065/5.984, allocations: 0.5241 MB / 1.396 GB, free: 52.08 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005218/5.99, allocations: 0.8873 MB / 1.397 GB, free: 51.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003552/5.993, allocations: 308.3 kB / 1.397 GB, free: 51.83 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006007/5.999, allocations: 2.22 MB / 1.399 GB, free: 51.04 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.81e-07/5.999, allocations: 5.156 kB / 1.399 GB, free: 51.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01839/6.018, allocations: 3.465 MB / 1.403 GB, free: 50.39 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealClosingSwitch.idealClosingSwitch[1].pin_p.reference.gamma) * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (565): * Single equations (assignments): 498 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 63 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,99 312} Notification: Performance of Backend phase and start with SimCode phase: time 0.1071/6.125, allocations: 36.74 MB / 1.439 GB, free: 21.71 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.05877/6.184, allocations: 19.82 MB / 1.458 GB, free: 4.512 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/6.184, allocations: 0 / 1.458 GB, free: 4.512 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.06133/6.245, allocations: 12.08 MB / 1.47 GB, free: 13.96 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01358/6.259, allocations: 1.147 MB / 1.471 GB, free: 13.08 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5584/6.817, allocations: 32.72 MB / 1.503 GB, free: 84.74 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02657/6.844, allocations: 9.357 MB / 1.512 GB, free: 83.78 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01596/6.86, allocations: 4.778 MB / 1.517 GB, free: 83.77 MB / 0.5417 GB Notification: Performance of SimCode: time 5.15e-06/6.86, allocations: 5.625 kB / 1.517 GB, free: 83.77 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.001/13.86, allocations: 0.5272 GB / 2.044 GB, free: 50.28 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.mat does not exist to compare? outputFormat=mat