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: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") Notification: Performance of loadModel(ModelicaTest): time 2.791/2.791, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004609/0.0004612, allocations: 11.98 kB / 314.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4419/0.4424, allocations: 54.86 MB / 369.8 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1877/0.6302, allocations: 94.88 MB / 464.7 MB, free: 13.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003447/0.6306, allocations: 95.83 kB / 464.8 MB, free: 13.66 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1476/0.7782, allocations: 38.8 MB / 0.4918 GB, free: 6.387 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.7783, allocations: 0 / 0.4918 GB, free: 6.387 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.733e-05/0.7784, allocations: 20 kB / 0.4918 GB, free: 6.367 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.008528/0.7869, allocations: 1.733 MB / 0.4935 GB, free: 4.582 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.787, allocations: 8.031 kB / 0.4935 GB, free: 4.574 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0109/0.7979, allocations: 1.068 MB / 0.4945 GB, free: 3.504 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.7998, allocations: 0.5679 MB / 0.4951 GB, free: 2.895 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001408/0.7999, allocations: 106.7 kB / 0.4952 GB, free: 2.789 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000364/0.8003, allocations: 136 kB / 0.4953 GB, free: 2.656 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005083/0.8054, allocations: 1.511 MB / 0.4968 GB, free: 1.098 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.806e-05/0.8055, allocations: 4 kB / 0.4968 GB, free: 1.094 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002404/0.8058, allocations: 56 kB / 0.4969 GB, free: 1.039 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-05/0.8059, allocations: 35.95 kB / 0.4969 GB, free: 1.004 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3315/1.137, allocations: 1.583 MB / 0.4984 GB, free: 101.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01503/1.152, allocations: 5.46 MB / 0.5038 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003604/1.156, allocations: 2.387 MB / 0.5061 GB, free: 98.61 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002859/1.156, allocations: 105.4 kB / 0.5062 GB, free: 98.51 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/1.157, allocations: 46.56 kB / 0.5062 GB, free: 98.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=129): time 5.671e-06/1.157, allocations: 3.797 kB / 0.5062 GB, free: 98.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=129): time 0.01642/1.173, allocations: 3.133 MB / 0.5093 GB, free: 98.26 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/1.173, allocations: 91.02 kB / 0.5094 GB, free: 98.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006768/1.174, allocations: 447.4 kB / 0.5098 GB, free: 98.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/1.174, allocations: 46.95 kB / 0.5099 GB, free: 98.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000248/1.174, allocations: 0.4962 MB / 0.5103 GB, free: 97.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000389/1.175, allocations: 429.7 kB / 0.5108 GB, free: 97.51 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/1.175, allocations: 28.31 kB / 0.5108 GB, free: 97.51 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/1.175, allocations: 360.9 kB / 0.5111 GB, free: 97.19 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/1.176, allocations: 467.9 kB / 0.5116 GB, free: 97.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/1.178, allocations: 0.714 MB / 0.5123 GB, free: 96.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/1.179, allocations: 0.5299 MB / 0.5128 GB, free: 96.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/1.18, allocations: 3.219 kB / 0.5128 GB, free: 96.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004712/1.184, allocations: 1.588 MB / 0.5143 GB, free: 96.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/1.184, allocations: 9.594 kB / 0.5143 GB, free: 96.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/1.184, allocations: 6.219 kB / 0.5144 GB, free: 96.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002581/1.187, allocations: 0.5201 MB / 0.5149 GB, free: 96.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/1.189, allocations: 203.4 kB / 0.5151 GB, free: 96.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/1.199, allocations: 4.421 MB / 0.5194 GB, free: 95.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/1.2, allocations: 129.3 kB / 0.5195 GB, free: 95.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/1.201, allocations: 56.23 kB / 0.5196 GB, free: 95 MB / 426.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.0007166/1.201, allocations: 266.4 kB / 0.5198 GB, free: 94.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002282/1.201, allocations: 78.34 kB / 0.5199 GB, free: 94.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004662/1.206, allocations: 1.591 MB / 0.5214 GB, free: 94.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.656e-05/1.206, allocations: 14.75 kB / 0.5214 GB, free: 94.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/1.206, allocations: 0 / 0.5214 GB, free: 94.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-05/1.206, allocations: 10.61 kB / 0.5215 GB, free: 94.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006987/1.213, allocations: 2.905 MB / 0.5243 GB, free: 92.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/1.213, allocations: 0 / 0.5243 GB, free: 92.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/1.215, allocations: 147.8 kB / 0.5244 GB, free: 92.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002362/1.217, allocations: 0.5148 MB / 0.5249 GB, free: 92.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/1.217, allocations: 26.83 kB / 0.525 GB, free: 92.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01016/1.227, allocations: 4.408 MB / 0.5293 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/1.227, allocations: 0 / 0.5293 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00604/1.233, allocations: 2.307 MB / 0.5315 GB, free: 88.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006549/1.234, allocations: 291.1 kB / 0.5318 GB, free: 88.14 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002072/1.234, allocations: 19.97 kB / 0.5318 GB, free: 88.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/1.235, allocations: 50.19 kB / 0.5319 GB, free: 88.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003279/1.236, allocations: 108.4 kB / 0.532 GB, free: 88.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/1.236, allocations: 35.14 kB / 0.532 GB, free: 88.08 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004416/1.236, allocations: 297.8 kB / 0.5323 GB, free: 87.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.236, allocations: 2.188 kB / 0.5323 GB, free: 87.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001655/1.238, allocations: 422.2 kB / 0.5327 GB, free: 87.83 MB / 426.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.0003839/1.238, allocations: 172.2 kB / 0.5329 GB, free: 87.71 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005117/1.244, allocations: 1.776 MB / 0.5346 GB, free: 86.97 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/1.244, allocations: 0 / 0.5346 GB, free: 86.97 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003428/1.247, allocations: 1.169 MB / 0.5357 GB, free: 86.43 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008703/1.248, allocations: 88.12 kB / 0.5358 GB, free: 86.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007582/1.255, allocations: 3.111 MB / 0.5389 GB, free: 84.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006394/1.256, allocations: 1.107 MB / 0.5399 GB, free: 83.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005085/1.257, allocations: 71.33 kB / 0.54 GB, free: 83.42 MB / 426.7 MB Notification: Performance of SimCode: time 9.72e-07/1.257, allocations: 0 / 0.54 GB, free: 83.42 MB / 426.7 MB Notification: Performance of Templates: time 0.03124/1.288, allocations: 16.96 MB / 0.5566 GB, free: 72.83 MB / 426.7 MB