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.SerialConnection.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.SerialConnection,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.677/2.677, allocations: 235 MB / 248 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.486e-05/4.496e-05, allocations: 7.984 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4576/0.4577, allocations: 54.85 MB / 364.6 MB, free: 5.562 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2176/0.6754, allocations: 100.5 MB / 465.1 MB, free: 11.97 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.6757, allocations: 83.95 kB / 465.2 MB, free: 11.89 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.019/2.695, allocations: 388.5 MB / 0.8336 GB, free: 42.36 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.725e-06/2.695, allocations: 0 / 0.8336 GB, free: 42.36 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008592/2.696, allocations: 254.3 kB / 0.8339 GB, free: 42.11 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3353 * Number of variables: 3353 Notification: Performance of Generate backend data structure: time 0.0526/2.749, allocations: 10.47 MB / 0.8441 GB, free: 31.64 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.168e-05/2.749, allocations: 12.03 kB / 0.8441 GB, free: 31.63 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008263/2.757, allocations: 1.72 MB / 0.8458 GB, free: 29.91 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06744/2.825, allocations: 8.374 MB / 0.854 GB, free: 21.59 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02394/2.849, allocations: 7.237 MB / 0.861 GB, free: 14.33 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001524/2.85, allocations: 0.8591 MB / 0.8619 GB, free: 13.48 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006304/2.857, allocations: 1.12 MB / 0.863 GB, free: 12.38 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07132/2.928, allocations: 20.89 MB / 0.8834 GB, free: 7.18 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007/2.929, allocations: 19.8 kB / 0.8834 GB, free: 7.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005838/2.935, allocations: 497.1 kB / 0.8839 GB, free: 6.688 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001694/2.936, allocations: 0.8363 MB / 0.8847 GB, free: 5.848 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.8297/3.766, allocations: 19.54 MB / 0.9038 GB, free: 54.22 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1707/3.937, allocations: 59.82 MB / 0.9622 GB, free: 46.48 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04216/3.979, allocations: 23.89 MB / 0.9855 GB, free: 30.57 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02537/4.004, allocations: 10.12 MB / 0.9954 GB, free: 26.38 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002033/4.007, allocations: 369.1 kB / 0.9958 GB, free: 26.22 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002002/4.007, allocations: 136.7 kB / 0.9959 GB, free: 26.11 MB / 490.8 MB Notification: Performance of pre-optimization done (n=1196): time 1.951e-05/4.007, allocations: 0.5625 kB / 0.9959 GB, free: 26.11 MB / 490.8 MB Notification: Performance of matching and sorting (n=1196): time 0.05207/4.059, allocations: 17.88 MB / 1.013 GB, free: 19.15 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/4.059, allocations: 156 kB / 1.014 GB, free: 19.08 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006189/4.065, allocations: 2.639 MB / 1.016 GB, free: 18.18 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002752/4.068, allocations: 187 kB / 1.016 GB, free: 18.02 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002388/4.071, allocations: 3.262 MB / 1.019 GB, free: 15.64 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.006912/4.078, allocations: 3.898 MB / 1.023 GB, free: 12.59 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002175/4.08, allocations: 168.6 kB / 1.023 GB, free: 12.46 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001141/4.081, allocations: 0.7242 MB / 1.024 GB, free: 11.97 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01788/4.099, allocations: 7.004 MB / 1.031 GB, free: 5.848 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02324/4.122, allocations: 8.033 MB / 1.039 GB, free: 15.05 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02579/4.148, allocations: 8.273 MB / 1.047 GB, free: 8.117 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-05/4.148, allocations: 4 kB / 1.047 GB, free: 8.113 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1268) (initialization): time 0.09582/4.244, allocations: 20.62 MB / 1.067 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.701e-05/4.244, allocations: 8 kB / 1.067 GB, free: 13.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001017/4.244, allocations: 15.31 kB / 1.067 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01211/4.256, allocations: 3.734 MB / 1.071 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01745/4.274, allocations: 1.914 MB / 1.073 GB, free: 8.938 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.511/4.785, allocations: 21.54 MB / 1.094 GB, free: 76.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01115/4.796, allocations: 1.125 MB / 1.095 GB, free: 76.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003518/4.8, allocations: 337.2 kB / 1.095 GB, free: 76.68 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (933): * Single equations (assignments): 818 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 99 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 10 {6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.006813/4.806, allocations: 0.5382 MB / 1.096 GB, free: 76.57 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00442/4.811, allocations: 0.5542 MB / 1.096 GB, free: 76.45 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06944/4.88, allocations: 20.24 MB / 1.116 GB, free: 75.85 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004431/4.881, allocations: 291.3 kB / 1.116 GB, free: 75.85 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.48e-05/4.881, allocations: 7.047 kB / 1.116 GB, free: 75.85 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002419/4.881, allocations: 47.81 kB / 1.116 GB, free: 75.85 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1329/5.014, allocations: 38.51 MB / 1.154 GB, free: 73.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001634/5.014, allocations: 1.969 kB / 1.154 GB, free: 73.74 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0156/5.03, allocations: 1.773 MB / 1.156 GB, free: 73.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01039/5.04, allocations: 3.702 MB / 1.159 GB, free: 72.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003178/5.044, allocations: 254.4 kB / 1.159 GB, free: 72.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02608/5.07, allocations: 21.41 MB / 1.18 GB, free: 55.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/5.07, allocations: 6.484 kB / 1.18 GB, free: 55.96 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07874/5.149, allocations: 30.12 MB / 1.21 GB, free: 43.68 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002153/5.151, allocations: 0.8475 MB / 1.211 GB, free: 43.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003656/5.154, allocations: 171.9 kB / 1.211 GB, free: 42.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01069/5.165, allocations: 0.5883 MB / 1.211 GB, free: 42.49 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005491/5.171, allocations: 0.8439 MB / 1.212 GB, free: 41.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003443/5.174, allocations: 324.1 kB / 1.212 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006775/5.181, allocations: 2.04 MB / 1.214 GB, free: 39.88 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.02e-07/5.181, allocations: 0 / 1.214 GB, free: 39.88 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01806/5.199, allocations: 3.078 MB / 1.217 GB, free: 36.79 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (921): * Single equations (assignments): 806 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 99 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 10 {6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.09148/5.291, allocations: 31.02 MB / 1.248 GB, free: 9.656 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0761/5.367, allocations: 19.17 MB / 1.266 GB, free: 14.04 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.594e-05/5.367, allocations: 4 kB / 1.266 GB, free: 14.04 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.03057/5.398, allocations: 9.704 MB / 1.276 GB, free: 5.453 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01158/5.409, allocations: 0.9863 MB / 1.277 GB, free: 4.691 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5698/5.979, allocations: 29.15 MB / 1.305 GB, free: 97.15 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02049/6, allocations: 7.955 MB / 1.313 GB, free: 96.23 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01528/6.015, allocations: 4.135 MB / 1.317 GB, free: 96.22 MB / 0.5262 GB Notification: Performance of SimCode: time 1.693e-06/6.015, allocations: 2.719 kB / 1.317 GB, free: 96.22 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.4/16.41, allocations: 1.197 GB / 2.514 GB, free: 137.9 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection_res.mat does not exist to compare? outputFormat=mat