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.SinglePhase.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.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.27/2.27, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004811/0.0004812, allocations: 12 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3607, allocations: 54.85 MB / 369.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1652/0.526, allocations: 94.89 MB / 464.2 MB, free: 11.69 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003389/0.5264, allocations: 87.89 kB / 464.3 MB, free: 11.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4342/0.9606, allocations: 38.8 MB / 0.4913 GB, free: 81.69 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.9607, allocations: 0 / 0.4913 GB, free: 81.69 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.37e-05/0.9607, allocations: 23.98 kB / 0.4914 GB, free: 81.66 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 345 * Number of variables: 345 Notification: Performance of Generate backend data structure: time 0.007614/0.9684, allocations: 1.737 MB / 0.4931 GB, free: 79.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.9684, allocations: 8.031 kB / 0.4931 GB, free: 79.87 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006694/0.9691, allocations: 206.6 kB / 0.4933 GB, free: 79.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01041/0.9795, allocations: 1.056 MB / 0.4943 GB, free: 78.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/0.981, allocations: 0.5757 MB / 0.4949 GB, free: 77.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.647e-05/0.9812, allocations: 102.7 kB / 0.495 GB, free: 77.88 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002952/0.9815, allocations: 132 kB / 0.4951 GB, free: 77.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004074/0.9856, allocations: 1.507 MB / 0.4966 GB, free: 76.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.45e-05/0.9857, allocations: 11.89 kB / 0.4966 GB, free: 76.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002058/0.9859, allocations: 52 kB / 0.4966 GB, free: 76.13 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.831e-05/0.986, allocations: 39.95 kB / 0.4967 GB, free: 76.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004748/0.9907, allocations: 1.587 MB / 0.4982 GB, free: 74.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01228/1.003, allocations: 5.452 MB / 0.5035 GB, free: 68.79 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003378/1.006, allocations: 2.381 MB / 0.5059 GB, free: 66.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002503/1.007, allocations: 102.1 kB / 0.5059 GB, free: 66.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/1.007, allocations: 51.56 kB / 0.506 GB, free: 65.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=129): time 4.759e-06/1.007, allocations: 4 kB / 0.506 GB, free: 65.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.01551/1.022, allocations: 3.137 MB / 0.5091 GB, free: 62.79 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/1.022, allocations: 90.11 kB / 0.5092 GB, free: 62.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005868/1.023, allocations: 392.9 kB / 0.5095 GB, free: 62.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/1.023, allocations: 45.7 kB / 0.5096 GB, free: 62.24 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/1.023, allocations: 0.498 MB / 0.5101 GB, free: 61.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003748/1.024, allocations: 425.7 kB / 0.5105 GB, free: 61.31 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/1.024, allocations: 27.94 kB / 0.5105 GB, free: 61.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.91e-05/1.024, allocations: 366.7 kB / 0.5108 GB, free: 60.92 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/1.025, allocations: 458.4 kB / 0.5113 GB, free: 60.47 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001403/1.027, allocations: 0.722 MB / 0.512 GB, free: 59.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/1.028, allocations: 0.5217 MB / 0.5125 GB, free: 59.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/1.028, allocations: 0 / 0.5125 GB, free: 59.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004212/1.032, allocations: 1.588 MB / 0.514 GB, free: 57.53 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/1.033, allocations: 10.03 kB / 0.5141 GB, free: 57.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/1.033, allocations: 8 kB / 0.5141 GB, free: 57.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002577/1.035, allocations: 0.5244 MB / 0.5146 GB, free: 56.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/1.037, allocations: 203.6 kB / 0.5148 GB, free: 56.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01063/1.047, allocations: 4.42 MB / 0.5191 GB, free: 52.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/1.049, allocations: 134.7 kB / 0.5192 GB, free: 52.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002186/1.049, allocations: 51.95 kB / 0.5193 GB, free: 52.05 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.001031/1.05, allocations: 273.5 kB / 0.5195 GB, free: 51.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004037/1.051, allocations: 83.05 kB / 0.5196 GB, free: 51.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008581/1.059, allocations: 1.591 MB / 0.5212 GB, free: 50.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.913e-05/1.059, allocations: 12 kB / 0.5212 GB, free: 50.07 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/1.059, allocations: 0 / 0.5212 GB, free: 50.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.698e-05/1.059, allocations: 11.92 kB / 0.5212 GB, free: 50.06 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009343/1.069, allocations: 2.896 MB / 0.524 GB, free: 47.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/1.069, allocations: 4 kB / 0.524 GB, free: 47.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/1.07, allocations: 139.8 kB / 0.5241 GB, free: 46.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003171/1.074, allocations: 0.5144 MB / 0.5246 GB, free: 46.45 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001985/1.074, allocations: 27.98 kB / 0.5247 GB, free: 46.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/1.087, allocations: 4.414 MB / 0.529 GB, free: 41.87 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/1.087, allocations: 3.984 kB / 0.529 GB, free: 41.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007896/1.095, allocations: 2.32 MB / 0.5313 GB, free: 39.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000784/1.096, allocations: 291.7 kB / 0.5315 GB, free: 39.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/1.096, allocations: 24 kB / 0.5316 GB, free: 39.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/1.098, allocations: 67.94 kB / 0.5316 GB, free: 39.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004442/1.098, allocations: 97.11 kB / 0.5317 GB, free: 39.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/1.098, allocations: 35.98 kB / 0.5317 GB, free: 38.98 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005773/1.099, allocations: 298.9 kB / 0.532 GB, free: 38.69 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.099, allocations: 0 / 0.532 GB, free: 38.69 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002336/1.101, allocations: 419 kB / 0.5324 GB, free: 38.28 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.008655/1.11, allocations: 3.073 MB / 0.5354 GB, free: 35.17 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006895/1.117, allocations: 1.786 MB / 0.5372 GB, free: 33.37 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/1.117, allocations: 4 kB / 0.5372 GB, free: 33.37 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004453/1.121, allocations: 1.162 MB / 0.5383 GB, free: 32.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/1.122, allocations: 78.39 kB / 0.5384 GB, free: 32.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02122/1.144, allocations: 11.39 MB / 0.5495 GB, free: 20.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006486/1.144, allocations: 1.099 MB / 0.5506 GB, free: 19.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008365/1.145, allocations: 395.3 kB / 0.551 GB, free: 19 MB / 394.7 MB Notification: Performance of SimCode: time 1.012e-06/1.145, allocations: 0 / 0.551 GB, free: 19 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.833/3.978, allocations: 21.12 MB / 0.5716 GB, free: 13.85 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat