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.551/2.551, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.403e-05/3.433e-05, allocations: 0 / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5224/0.5225, allocations: 54.85 MB / 364.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1988/0.7214, allocations: 94.8 MB / 459.4 MB, free: 1.574 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003285/0.7218, allocations: 79.95 kB / 459.5 MB, free: 1.496 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1502/0.8719, allocations: 38.75 MB / 498.3 MB, free: 10.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.872, allocations: 0 / 498.3 MB, free: 10.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.5e-05/0.8721, allocations: 20 kB / 498.3 MB, free: 10.3 MB / 426.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.008475/0.8806, allocations: 1.682 MB / 500 MB, free: 8.574 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.8806, allocations: 8.031 kB / 500 MB, free: 8.566 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005667/0.8812, allocations: 194.6 kB / 0.4884 GB, free: 8.367 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01119/0.8924, allocations: 1.052 MB / 0.4895 GB, free: 7.312 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001916/0.8944, allocations: 0.5728 MB / 0.49 GB, free: 6.695 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001712/0.8946, allocations: 98.69 kB / 0.4901 GB, free: 6.598 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005987/0.8952, allocations: 132 kB / 0.4902 GB, free: 6.469 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004925/0.9002, allocations: 1.453 MB / 0.4917 GB, free: 4.969 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.935e-05/0.9003, allocations: 3.906 kB / 0.4917 GB, free: 4.965 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002317/0.9006, allocations: 59.95 kB / 0.4917 GB, free: 4.906 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.405e-05/0.9006, allocations: 39.97 kB / 0.4918 GB, free: 4.867 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00443/0.9051, allocations: 1.49 MB / 0.4932 GB, free: 3.371 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01473/0.9198, allocations: 5.463 MB / 0.4986 GB, free: 13.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004214/0.9241, allocations: 2.337 MB / 0.5008 GB, free: 11.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/0.9259, allocations: 0.6326 MB / 0.5015 GB, free: 10.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000321/0.9263, allocations: 114.1 kB / 0.5016 GB, free: 10.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.275e-05/0.9264, allocations: 47.56 kB / 0.5016 GB, free: 10.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=129): time 4.578e-06/0.9264, allocations: 0 / 0.5016 GB, free: 10.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=129): time 0.004178/0.9306, allocations: 1.242 MB / 0.5028 GB, free: 8.961 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.094e-05/0.9307, allocations: 98.05 kB / 0.5029 GB, free: 8.848 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008587/0.9316, allocations: 379 kB / 0.5033 GB, free: 8.469 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002884/0.9319, allocations: 45.7 kB / 0.5033 GB, free: 8.418 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004864/0.9324, allocations: 0.5017 MB / 0.5038 GB, free: 7.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007089/0.9331, allocations: 433.8 kB / 0.5042 GB, free: 7.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.9333, allocations: 28 kB / 0.5042 GB, free: 7.453 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002289/0.9335, allocations: 358.7 kB / 0.5046 GB, free: 7.094 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001356/0.9349, allocations: 422.6 kB / 0.505 GB, free: 6.68 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/0.9366, allocations: 0.6831 MB / 0.5057 GB, free: 5.895 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.9383, allocations: 0.489 MB / 0.5061 GB, free: 5.406 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.9383, allocations: 0 / 0.5061 GB, free: 5.406 MB / 442.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004894/0.9432, allocations: 1.506 MB / 0.5076 GB, free: 3.891 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.753e-05/0.9433, allocations: 8 kB / 0.5076 GB, free: 3.883 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.591e-05/0.9434, allocations: 11.98 kB / 0.5076 GB, free: 3.871 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002827/0.9462, allocations: 0.5089 MB / 0.5081 GB, free: 3.359 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/0.9481, allocations: 211.6 kB / 0.5083 GB, free: 3.152 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/0.9597, allocations: 4.244 MB / 0.5125 GB, free: 14.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/0.9613, allocations: 130.7 kB / 0.5126 GB, free: 14.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001728/0.9615, allocations: 55.98 kB / 0.5126 GB, free: 14.59 MB / 458.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 () * 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.0004225/0.9619, allocations: 181.5 kB / 0.5128 GB, free: 14.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002799/0.9622, allocations: 86.97 kB / 0.5129 GB, free: 14.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00461/0.9668, allocations: 1.505 MB / 0.5144 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.122e-05/0.9669, allocations: 16 kB / 0.5144 GB, free: 12.79 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.967, allocations: 4.062 kB / 0.5144 GB, free: 12.78 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.143e-05/0.967, allocations: 11.92 kB / 0.5144 GB, free: 12.77 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007885/0.9749, allocations: 2.803 MB / 0.5171 GB, free: 9.898 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.435e-05/0.975, allocations: 0 / 0.5171 GB, free: 9.898 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001417/0.9764, allocations: 151.8 kB / 0.5173 GB, free: 9.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002694/0.9791, allocations: 0.5028 MB / 0.5178 GB, free: 9.25 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002263/0.9794, allocations: 28 kB / 0.5178 GB, free: 9.223 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01194/0.9913, allocations: 4.243 MB / 0.5219 GB, free: 4.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-05/0.9914, allocations: 3.984 kB / 0.522 GB, free: 4.836 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006419/0.9979, allocations: 2.207 MB / 0.5241 GB, free: 2.598 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007973/0.9987, allocations: 291.6 kB / 0.5244 GB, free: 2.293 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/0.9989, allocations: 32.06 kB / 0.5244 GB, free: 2.262 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/1, allocations: 51.97 kB / 0.5245 GB, free: 2.211 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003829/1.001, allocations: 93.17 kB / 0.5246 GB, free: 2.121 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/1.001, allocations: 36 kB / 0.5246 GB, free: 2.086 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005693/1.001, allocations: 305.5 kB / 0.5249 GB, free: 1.785 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.001, allocations: 0 / 0.5249 GB, free: 1.785 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001904/1.003, allocations: 411.1 kB / 0.5253 GB, free: 1.383 MB / 458.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 () * 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.3457/1.349, allocations: 2.965 MB / 0.5282 GB, free: 121.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005636/1.355, allocations: 1.683 MB / 0.5298 GB, free: 121.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/1.355, allocations: 1.219 kB / 0.5298 GB, free: 121.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00373/1.358, allocations: 1.105 MB / 0.5309 GB, free: 121.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009709/1.359, allocations: 81.75 kB / 0.531 GB, free: 121.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009147/1.369, allocations: 2.296 MB / 0.5332 GB, free: 120.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000969/1.37, allocations: 1.094 MB / 0.5343 GB, free: 120.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000954/1.371, allocations: 399.7 kB / 0.5347 GB, free: 120.1 MB / 458.7 MB Notification: Performance of SimCode: time 2.424e-06/1.371, allocations: 0 / 0.5347 GB, free: 120.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.898/4.268, allocations: 21.32 MB / 0.5555 GB, free: 119.1 MB / 458.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