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.357/2.357, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005671/0.0005673, allocations: 12 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3583, allocations: 54.86 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4972/0.8556, allocations: 106.5 MB / 475.9 MB, free: 40.68 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003553/0.856, allocations: 92.11 kB / 476 MB, free: 40.67 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.271/3.127, allocations: 470.5 MB / 0.9243 GB, free: 56.58 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.256e-06/3.127, allocations: 0 / 0.9243 GB, free: 56.58 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001113/3.128, allocations: 294.7 kB / 0.9246 GB, free: 56.55 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.07292/3.201, allocations: 13.96 MB / 0.9382 GB, free: 52.58 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/3.201, allocations: 14.34 kB / 0.9382 GB, free: 52.58 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009931/3.211, allocations: 2.03 MB / 0.9402 GB, free: 52.45 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06621/3.277, allocations: 8.552 MB / 0.9486 GB, free: 51.68 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0266/3.304, allocations: 8.575 MB / 0.9569 GB, free: 50.21 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001944/3.306, allocations: 1.022 MB / 0.9579 GB, free: 50.18 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007638/3.313, allocations: 1.303 MB / 0.9592 GB, free: 50.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08252/3.396, allocations: 24.9 MB / 0.9835 GB, free: 37.41 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000712/3.397, allocations: 19.75 kB / 0.9835 GB, free: 37.39 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006679/3.403, allocations: 0.565 MB / 0.9841 GB, free: 36.84 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001475/3.405, allocations: 0.9306 MB / 0.985 GB, free: 36.01 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06539/3.47, allocations: 22.51 MB / 1.007 GB, free: 16.74 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6095/4.08, allocations: 75.48 MB / 1.081 GB, free: 37.94 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04065/4.12, allocations: 21.08 MB / 1.101 GB, free: 48.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1003/4.221, allocations: 37.22 MB / 1.138 GB, free: 35.89 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001323/4.221, allocations: 138.6 kB / 1.138 GB, free: 35.77 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1188): time 1.773e-05/4.221, allocations: 0 / 1.138 GB, free: 35.77 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1188): time 0.09006/4.311, allocations: 37.21 MB / 1.174 GB, free: 16.22 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/4.311, allocations: 180.2 kB / 1.174 GB, free: 16.12 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006271/4.318, allocations: 2.942 MB / 1.177 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002683/4.32, allocations: 176.2 kB / 1.177 GB, free: 14.98 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002883/4.323, allocations: 4.269 MB / 1.181 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.006705/4.33, allocations: 3.857 MB / 1.185 GB, free: 9.203 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00165/4.332, allocations: 176.8 kB / 1.185 GB, free: 9.066 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001156/4.333, allocations: 0.7521 MB / 1.186 GB, free: 8.566 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02314/4.356, allocations: 8.08 MB / 1.194 GB, free: 2.25 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05506/4.411, allocations: 11.34 MB / 1.205 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02815/4.439, allocations: 9.406 MB / 1.214 GB, free: 6.043 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-05/4.439, allocations: 12 kB / 1.214 GB, free: 6.031 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1360) (initialization): time 0.5154/4.955, allocations: 24.08 MB / 1.238 GB, free: 84.53 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.127e-05/4.955, allocations: 19.91 kB / 1.238 GB, free: 84.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000132/4.955, allocations: 36.03 kB / 1.238 GB, free: 84.53 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0355/4.991, allocations: 10.36 MB / 1.248 GB, free: 84.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01119/5.002, allocations: 1.351 MB / 1.249 GB, free: 84.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04676/5.049, allocations: 19.53 MB / 1.268 GB, free: 81.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01173/5.06, allocations: 1.118 MB / 1.269 GB, free: 81.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003554/5.064, allocations: 391.6 kB / 1.27 GB, free: 81.7 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 () * Number of clocked 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.01732/5.081, allocations: 5.354 MB / 1.275 GB, free: 81.59 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003724/5.085, allocations: 0.5899 MB / 1.276 GB, free: 81.26 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07639/5.161, allocations: 24.69 MB / 1.3 GB, free: 77.73 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005617/5.162, allocations: 332.6 kB / 1.3 GB, free: 77.56 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-05/5.162, allocations: 0 / 1.3 GB, free: 77.56 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002283/5.162, allocations: 49.19 kB / 1.3 GB, free: 77.56 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1196/5.282, allocations: 43.64 MB / 1.343 GB, free: 59.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001614/5.282, allocations: 2.375 kB / 1.343 GB, free: 59.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009717/5.292, allocations: 1.082 MB / 1.344 GB, free: 59.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03351/5.325, allocations: 10.32 MB / 1.354 GB, free: 51.38 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002991/5.328, allocations: 249.2 kB / 1.354 GB, free: 51.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03948/5.368, allocations: 19.47 MB / 1.373 GB, free: 34.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/5.368, allocations: 0 / 1.373 GB, free: 34.13 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09019/5.458, allocations: 36.35 MB / 1.409 GB, free: 2.789 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008977/5.467, allocations: 2.673 MB / 1.411 GB, free: 0.5508 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003684/5.471, allocations: 156 kB / 1.411 GB, free: 408 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009554/5.481, allocations: 0.5307 MB / 1.412 GB, free: 36 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007628/5.488, allocations: 1.067 MB / 1.413 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002652/5.491, allocations: 309.9 kB / 1.413 GB, free: 15.65 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00552/5.496, allocations: 2.25 MB / 1.415 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.51e-07/5.496, allocations: 0 / 1.415 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.4288/5.925, allocations: 3.464 MB / 1.419 GB, free: 102.9 MB / 0.5417 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 () * Number of clocked 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.1004/6.026, allocations: 37.26 MB / 1.455 GB, free: 101.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.06001/6.086, allocations: 20.18 MB / 1.475 GB, free: 101 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/6.086, allocations: 8.188 kB / 1.475 GB, free: 101 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.03657/6.122, allocations: 11.12 MB / 1.486 GB, free: 99.06 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01222/6.135, allocations: 1.153 MB / 1.487 GB, free: 98.75 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2464/6.381, allocations: 115.6 MB / 1.6 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02298/6.404, allocations: 9.348 MB / 1.609 GB, free: 4.727 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0153/6.42, allocations: 4.78 MB / 1.614 GB, free: 292 kB / 0.5417 GB Notification: Performance of SimCode: time 1.713e-06/6.42, allocations: 0 / 1.614 GB, free: 292 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.955/13.37, allocations: 0.5243 GB / 2.138 GB, free: 84.85 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