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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.428/2.428, allocations: 235.1 MB / 243 MB, free: 15.69 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.829e-05/1.845e-05, allocations: 0 / 303.3 MB, free: 3.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3592, allocations: 54.85 MB / 358.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1757/0.5349, allocations: 94.14 MB / 452.3 MB, free: 1.438 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.5353, allocations: 87.78 kB / 452.4 MB, free: 1.355 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.45/0.9853, allocations: 38.2 MB / 490.6 MB, free: 94.76 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.9854, allocations: 0 / 490.6 MB, free: 94.76 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.876e-05/0.9855, allocations: 24.53 kB / 490.6 MB, free: 94.76 MB / 410.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.007865/0.9934, allocations: 1.677 MB / 492.3 MB, free: 94.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.9934, allocations: 10.5 kB / 492.3 MB, free: 94.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01051/1.004, allocations: 1.054 MB / 493.3 MB, free: 94.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/1.006, allocations: 0.575 MB / 493.9 MB, free: 93.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.636e-05/1.006, allocations: 44.38 kB / 493.9 MB, free: 93.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002817/1.006, allocations: 75.31 kB / 494 MB, free: 93.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003648/1.01, allocations: 1.42 MB / 495.4 MB, free: 93.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003204/1.013, allocations: 1.197 MB / 496.6 MB, free: 93.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.237e-05/1.013, allocations: 7.25 kB / 496.6 MB, free: 93.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001638/1.013, allocations: 3.953 kB / 496.6 MB, free: 93.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-05/1.013, allocations: 40.12 kB / 496.7 MB, free: 93.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01211/1.025, allocations: 5.235 MB / 0.4901 GB, free: 91.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002972/1.028, allocations: 2.291 MB / 0.4924 GB, free: 90.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/1.03, allocations: 0.5871 MB / 0.493 GB, free: 90.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002569/1.03, allocations: 112.5 kB / 0.4931 GB, free: 90.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/1.03, allocations: 46.44 kB / 0.4931 GB, free: 90.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=129): time 5.2e-06/1.03, allocations: 1.969 kB / 0.4931 GB, free: 90.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=129): time 0.004915/1.035, allocations: 1.317 MB / 0.4944 GB, free: 90.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/1.035, allocations: 90.08 kB / 0.4945 GB, free: 89.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006226/1.036, allocations: 333.3 kB / 0.4948 GB, free: 89.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002203/1.036, allocations: 25.7 kB / 0.4948 GB, free: 89.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002733/1.036, allocations: 0.5081 MB / 0.4953 GB, free: 89.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004084/1.037, allocations: 409.3 kB / 0.4957 GB, free: 89.13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/1.037, allocations: 0 / 0.4957 GB, free: 89.13 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/1.037, allocations: 358.7 kB / 0.4961 GB, free: 88.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009871/1.038, allocations: 398.4 kB / 0.4964 GB, free: 88.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/1.039, allocations: 0.6446 MB / 0.4971 GB, free: 88.51 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002451/1.042, allocations: 0.652 MB / 0.4977 GB, free: 88.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/1.042, allocations: 3.953 kB / 0.4977 GB, free: 88.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.00492/1.047, allocations: 1.569 MB / 0.4992 GB, free: 87.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.412e-05/1.047, allocations: 16.05 kB / 0.4993 GB, free: 87.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/1.047, allocations: 7.875 kB / 0.4993 GB, free: 87.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002338/1.049, allocations: 0.4934 MB / 0.4997 GB, free: 87.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001578/1.051, allocations: 205.6 kB / 0.4999 GB, free: 87.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009146/1.06, allocations: 4.134 MB / 0.504 GB, free: 84.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/1.061, allocations: 97.62 kB / 0.5041 GB, free: 84.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001466/1.061, allocations: 51.09 kB / 0.5041 GB, free: 84.79 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: impedance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real impedance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real admittance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real variableAdmittance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real idealIntermediateSwitch.s4.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealOpeningSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s4.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealOpeningSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealCommutingSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real 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.0004621/1.062, allocations: 181.5 kB / 0.5043 GB, free: 84.66 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004043/1.066, allocations: 1.32 MB / 0.5056 GB, free: 84.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002752/1.066, allocations: 79.86 kB / 0.5057 GB, free: 84.08 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004447/1.071, allocations: 1.537 MB / 0.5072 GB, free: 83.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.095e-05/1.071, allocations: 12.56 kB / 0.5072 GB, free: 83.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/1.071, allocations: 3.953 kB / 0.5072 GB, free: 83.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.644e-05/1.071, allocations: 3.891 kB / 0.5072 GB, free: 83.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006825/1.078, allocations: 2.724 MB / 0.5098 GB, free: 82.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/1.078, allocations: 2.25 kB / 0.5098 GB, free: 82.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/1.079, allocations: 147.9 kB / 0.51 GB, free: 81.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002259/1.081, allocations: 492.2 kB / 0.5104 GB, free: 81.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001679/1.081, allocations: 10.91 kB / 0.5105 GB, free: 81.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008832/1.09, allocations: 4.146 MB / 0.5145 GB, free: 77.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/1.09, allocations: 4 kB / 0.5145 GB, free: 77.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005765/1.096, allocations: 2.241 MB / 0.5167 GB, free: 75.49 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007178/1.097, allocations: 286.3 kB / 0.517 GB, free: 75.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/1.097, allocations: 4 kB / 0.517 GB, free: 75.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/1.098, allocations: 31.64 kB / 0.517 GB, free: 75.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003729/1.099, allocations: 102.6 kB / 0.5171 GB, free: 75.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/1.099, allocations: 32 kB / 0.5171 GB, free: 75.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003384/1.099, allocations: 246 kB / 0.5174 GB, free: 74.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.099, allocations: 0 / 0.5174 GB, free: 74.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001865/1.101, allocations: 366.9 kB / 0.5177 GB, free: 74.53 MB / 410.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.006104/1.107, allocations: 2.985 MB / 0.5206 GB, free: 71.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004431/1.112, allocations: 1.589 MB / 0.5222 GB, free: 70.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.112, allocations: 0 / 0.5222 GB, free: 70.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00313/1.115, allocations: 1.055 MB / 0.5232 GB, free: 69.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008369/1.116, allocations: 49.56 kB / 0.5233 GB, free: 69.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007522/1.123, allocations: 2.19 MB / 0.5254 GB, free: 67.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000645/1.124, allocations: 1.102 MB / 0.5265 GB, free: 66.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008454/1.125, allocations: 396.3 kB / 0.5269 GB, free: 65.91 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/1.125, allocations: 0 / 0.5269 GB, free: 65.91 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.001/4.126, allocations: 21 MB / 0.5474 GB, free: 48.52 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