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.001739/0.001739, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00203/0.00203, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2426/0.2426, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002337/0.002337, allocations: 87.89 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1248, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.009355/0.1342, allocations: 7.495 MB / 487.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005301/0.1395, allocations: 2.358 MB / 490.1 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001256/0.1409, allocations: 20 kB / 490.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004424/0.1453, allocations: 1.745 MB / 491.8 MB, free: 9.453 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002488/0.1478, allocations: 0.7001 MB / 492.5 MB, free: 8.754 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00185/0.1497, allocations: 0.7466 MB / 493.3 MB, free: 8.012 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001872/0.1516, allocations: 1.233 MB / 494.5 MB, free: 6.773 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001504/0.1531, allocations: 0.9378 MB / 495.4 MB, free: 5.816 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007727/0.1539, allocations: 0.5098 MB / 496 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007409/0.1546, allocations: 0.6652 MB / 496.6 MB, free: 4.637 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.1548, allocations: 104 kB / 496.7 MB, free: 4.535 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007391/0.1555, allocations: 299.8 kB / 497 MB, free: 4.242 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002372/0.1558, allocations: 278.9 kB / 497.3 MB, free: 3.969 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006118/0.1564, allocations: 0.6024 MB / 497.9 MB, free: 3.363 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001868/0.1583, allocations: 1.592 MB / 499.5 MB, free: 1.766 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1583, allocations: 0 / 499.5 MB, free: 1.766 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1583, allocations: 0 / 499.5 MB, free: 1.766 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.945e-05/0.1583, allocations: 0 / 499.5 MB, free: 1.766 MB / 366.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.004477/0.1628, allocations: 1.804 MB / 0.4895 GB, free: 15.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1629, allocations: 8.031 kB / 0.4895 GB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002209/0.1631, allocations: 198.7 kB / 0.4897 GB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01463/0.1777, allocations: 1.26 MB / 0.491 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/0.1793, allocations: 0.5607 MB / 0.4915 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.1794, allocations: 95.03 kB / 0.4916 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003333/0.1798, allocations: 143.8 kB / 0.4917 GB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00364/0.1834, allocations: 1.249 MB / 0.493 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.114e-05/0.1835, allocations: 0 / 0.493 GB, free: 12.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00019/0.1837, allocations: 56 kB / 0.493 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-05/0.1838, allocations: 32 kB / 0.493 GB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004082/0.1879, allocations: 1.459 MB / 0.4945 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01327/0.2011, allocations: 5.835 MB / 0.5002 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002733/0.2039, allocations: 1.116 MB / 0.5013 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006958/0.2046, allocations: 368.2 kB / 0.5016 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001884/0.2048, allocations: 187.2 kB / 0.5018 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/0.2049, allocations: 51.56 kB / 0.5018 GB, free: 2.637 MB / 382.1 MB Notification: Performance of pre-optimization done (n=90): time 2.484e-06/0.2049, allocations: 0 / 0.5018 GB, free: 2.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=90): time 0.00237/0.2073, allocations: 1.206 MB / 0.503 GB, free: 1.379 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.2073, allocations: 64.41 kB / 0.5031 GB, free: 1.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001096/0.2084, allocations: 0.8286 MB / 0.5039 GB, free: 476 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.799e-05/0.2085, allocations: 37.7 kB / 0.5039 GB, free: 432 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1657/0.3742, allocations: 0.4979 MB / 0.5044 GB, free: 39.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003787/0.3747, allocations: 307.6 kB / 0.5047 GB, free: 39.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004061/0.3751, allocations: 205.1 kB / 0.5049 GB, free: 39.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.3753, allocations: 395 kB / 0.5053 GB, free: 39.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000736/0.3761, allocations: 350.6 kB / 0.5056 GB, free: 39.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008461/0.3769, allocations: 0.6239 MB / 0.5062 GB, free: 39.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001414/0.3783, allocations: 0.9927 MB / 0.5072 GB, free: 38.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/0.3784, allocations: 5.594 kB / 0.5072 GB, free: 38.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002386/0.3807, allocations: 1.195 MB / 0.5084 GB, free: 38.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.3808, allocations: 13.64 kB / 0.5084 GB, free: 38.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.3808, allocations: 7.625 kB / 0.5084 GB, free: 38.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002721/0.3811, allocations: 66.86 kB / 0.5084 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.3821, allocations: 266.5 kB / 0.5087 GB, free: 38.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.3838, allocations: 2.825 MB / 0.5115 GB, free: 35.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009704/0.3848, allocations: 148.5 kB / 0.5116 GB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.758e-05/0.3849, allocations: 50.05 kB / 0.5116 GB, free: 35.55 MB / 382.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.0003952/0.3853, allocations: 264.3 kB / 0.5119 GB, free: 35.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.3855, allocations: 97.05 kB / 0.512 GB, free: 35.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001874/0.3874, allocations: 1.106 MB / 0.5131 GB, free: 34.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.3874, allocations: 8.766 kB / 0.5131 GB, free: 34.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3874, allocations: 2.531 kB / 0.5131 GB, free: 34.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.3874, allocations: 4.406 kB / 0.5131 GB, free: 34.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003659/0.3911, allocations: 3.17 MB / 0.5162 GB, free: 32.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.3911, allocations: 3.594 kB / 0.5162 GB, free: 32.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007182/0.3919, allocations: 183.7 kB / 0.5164 GB, free: 32.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002003/0.3921, allocations: 67 kB / 0.5164 GB, free: 32.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.893e-05/0.3921, allocations: 25.47 kB / 0.5164 GB, free: 32.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.3935, allocations: 2.819 MB / 0.5192 GB, free: 29.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.3935, allocations: 10.81 kB / 0.5192 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.3958, allocations: 1.479 MB / 0.5207 GB, free: 28.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002282/0.396, allocations: 192.3 kB / 0.5208 GB, free: 28.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.3962, allocations: 29.25 kB / 0.5209 GB, free: 28.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006376/0.3968, allocations: 47.89 kB / 0.5209 GB, free: 28.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.397, allocations: 86.94 kB / 0.521 GB, free: 28.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.783e-05/0.397, allocations: 40.41 kB / 0.521 GB, free: 28.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007873/0.3978, allocations: 0.5754 MB / 0.5216 GB, free: 28.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3978, allocations: 0 / 0.5216 GB, free: 28.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001135/0.399, allocations: 320.9 kB / 0.5219 GB, free: 28.12 MB / 382.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.002341/0.4013, allocations: 2.087 MB / 0.5239 GB, free: 26.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002266/0.4036, allocations: 1.124 MB / 0.525 GB, free: 26.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.4036, allocations: 4.562 kB / 0.525 GB, free: 26.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008532/0.4045, allocations: 0.6246 MB / 0.5256 GB, free: 25.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008398/0.4053, allocations: 123.2 kB / 0.5258 GB, free: 25.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/0.4167, allocations: 9.114 MB / 0.5347 GB, free: 19.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004918/0.4172, allocations: 1.014 MB / 0.5357 GB, free: 19.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006411/0.4179, allocations: 156.1 kB / 0.5358 GB, free: 19.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004312/0.4183, allocations: 385.7 kB / 0.5362 GB, free: 18.89 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4183, allocations: 0 / 0.5362 GB, free: 18.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04931/0.4676, allocations: 18.99 MB / 0.5547 GB, free: 3.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.73, allocations: 14.98 kB / 0.5547 GB, free: 3.312 MB / 382.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)