Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001317/0.001317, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2318/0.2318, allocations: 46.12 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002333, allocations: 79.88 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3501, allocations: 62.45 MB / 0.5306 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.01224/0.3624, allocations: 7.495 MB / 0.5379 GB, free: 7.277 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006065/0.3686, allocations: 2.348 MB / 0.5402 GB, free: 5.359 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001444/0.3701, allocations: 24.34 kB / 0.5402 GB, free: 5.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004848/0.375, allocations: 1.755 MB / 0.542 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003002/0.378, allocations: 0.6888 MB / 0.5426 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002337/0.3803, allocations: 0.7459 MB / 0.5434 GB, free: 2.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003031/0.3834, allocations: 1.252 MB / 0.5446 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002185/0.3856, allocations: 0.9347 MB / 0.5455 GB, free: 1.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.3869, allocations: 0.505 MB / 0.546 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001428/0.3884, allocations: 0.659 MB / 0.5466 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003571/0.3888, allocations: 109.6 kB / 0.5467 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001212/0.39, allocations: 309.9 kB / 0.547 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002669/0.3903, allocations: 267 kB / 0.5473 GB, free: 496 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008131/0.3911, allocations: 0.6064 MB / 0.5479 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002404/0.3935, allocations: 1.615 MB / 0.5494 GB, free: 14.25 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3935, allocations: 0 / 0.5494 GB, free: 14.25 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3936, allocations: 0 / 0.5494 GB, free: 14.25 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.294e-05/0.3936, allocations: 0 / 0.5494 GB, free: 14.25 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.004956/0.3986, allocations: 1.833 MB / 0.5512 GB, free: 12.37 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.3986, allocations: 11.97 kB / 0.5512 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002363/0.3989, allocations: 194.7 kB / 0.5514 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009446/0.4083, allocations: 1.272 MB / 0.5527 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.4097, allocations: 0.5688 MB / 0.5532 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.419e-05/0.4098, allocations: 99.03 kB / 0.5533 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002152/0.41, allocations: 139.9 kB / 0.5535 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/0.4125, allocations: 1.246 MB / 0.5547 GB, free: 8.773 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.39e-05/0.4125, allocations: 4 kB / 0.5547 GB, free: 8.77 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/0.4127, allocations: 59.97 kB / 0.5547 GB, free: 8.711 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.948e-05/0.4127, allocations: 32 kB / 0.5548 GB, free: 8.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00261/0.4153, allocations: 1.463 MB / 0.5562 GB, free: 7.211 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008884/0.4242, allocations: 5.817 MB / 0.5619 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002096/0.4263, allocations: 1.102 MB / 0.563 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006448/0.427, allocations: 382.5 kB / 0.5633 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002177/0.4272, allocations: 187.2 kB / 0.5635 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.846e-05/0.4273, allocations: 51.55 kB / 0.5635 GB, free: 15.1 MB / 430.1 MB Notification: Performance of pre-optimization done (n=90): time 3.206e-06/0.4273, allocations: 0 / 0.5635 GB, free: 15.1 MB / 430.1 MB Notification: Performance of matching and sorting (n=90): time 0.002623/0.4299, allocations: 1.211 MB / 0.5647 GB, free: 13.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.43, allocations: 60.41 kB / 0.5648 GB, free: 13.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001203/0.4312, allocations: 0.8286 MB / 0.5656 GB, free: 12.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.781e-05/0.4313, allocations: 41.7 kB / 0.5656 GB, free: 12.88 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004519/0.4318, allocations: 0.5155 MB / 0.5661 GB, free: 12.35 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002947/0.4321, allocations: 325.3 kB / 0.5664 GB, free: 12.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003447/0.4324, allocations: 198.8 kB / 0.5666 GB, free: 11.83 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002305/0.4327, allocations: 402.7 kB / 0.567 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006643/0.4333, allocations: 350.5 kB / 0.5674 GB, free: 11.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009558/0.4343, allocations: 0.6147 MB / 0.568 GB, free: 10.36 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.4359, allocations: 0.9992 MB / 0.5689 GB, free: 9.242 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.4359, allocations: 3.938 kB / 0.5689 GB, free: 9.238 MB / 430.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002386/0.4383, allocations: 1.19 MB / 0.5701 GB, free: 8.035 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.4383, allocations: 12 kB / 0.5701 GB, free: 8.023 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/0.4384, allocations: 16 kB / 0.5701 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/0.4387, allocations: 69.67 kB / 0.5702 GB, free: 7.934 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.4397, allocations: 263.6 kB / 0.5704 GB, free: 7.676 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002661/0.4424, allocations: 2.822 MB / 0.5732 GB, free: 4.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009894/0.4434, allocations: 158.9 kB / 0.5734 GB, free: 4.414 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.923e-05/0.4435, allocations: 51.98 kB / 0.5734 GB, free: 4.363 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00046/0.444, allocations: 260.8 kB / 0.5737 GB, free: 4.102 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/0.4442, allocations: 99.33 kB / 0.5737 GB, free: 4.004 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002034/0.4462, allocations: 1.103 MB / 0.5748 GB, free: 2.871 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.4463, allocations: 16 kB / 0.5748 GB, free: 2.855 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4463, allocations: 0 / 0.5748 GB, free: 2.855 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.4463, allocations: 7.922 kB / 0.5748 GB, free: 2.848 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004672/0.451, allocations: 3.17 MB / 0.5779 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.451, allocations: 8.781 kB / 0.5779 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007522/0.4518, allocations: 187.7 kB / 0.5781 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002498/0.452, allocations: 57.67 kB / 0.5782 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.094e-05/0.4521, allocations: 27.98 kB / 0.5782 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002866/0.455, allocations: 2.828 MB / 0.581 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/0.455, allocations: 4 kB / 0.581 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002787/0.4578, allocations: 1.497 MB / 0.5824 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004086/0.4582, allocations: 196.3 kB / 0.5826 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.4584, allocations: 27.95 kB / 0.5827 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006599/0.4591, allocations: 59.97 kB / 0.5827 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.4592, allocations: 80.28 kB / 0.5828 GB, free: 9.988 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.117e-05/0.4593, allocations: 32 kB / 0.5828 GB, free: 9.957 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008704/0.4602, allocations: 0.5849 MB / 0.5834 GB, free: 9.375 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4602, allocations: 4 kB / 0.5834 GB, free: 9.371 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001087/0.4613, allocations: 307.6 kB / 0.5837 GB, free: 9.07 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (currentSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003072/0.4644, allocations: 2.087 MB / 0.5857 GB, free: 6.871 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002241/0.4666, allocations: 1.105 MB / 0.5868 GB, free: 5.742 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/0.4667, allocations: 0 / 0.5868 GB, free: 5.742 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.4677, allocations: 0.6316 MB / 0.5874 GB, free: 5.086 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000955/0.4687, allocations: 127.2 kB / 0.5875 GB, free: 4.965 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/0.4822, allocations: 8.465 MB / 0.5958 GB, free: 12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007184/0.4829, allocations: 1.012 MB / 0.5968 GB, free: 10.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006171/0.4836, allocations: 151.8 kB / 0.5969 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005688/0.4841, allocations: 387.3 kB / 0.5973 GB, free: 10.42 MB / 462.1 MB Notification: Performance of SimCode: time 1.443e-06/0.4841, allocations: 0 / 0.5973 GB, free: 10.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05937/0.5435, allocations: 19.42 MB / 0.6163 GB, free: 7.234 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/12.01, allocations: 4.75 kB / 0.6163 GB, free: 7.23 MB / 478.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1)