Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 196.4 kB / 16.64 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.1 MB / 222.5 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.718/1.718, allocations: 292.3 MB / 0.549 GB, free: 12.74 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 75.33 kB / 0.6718 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2616, allocations: 114.5 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01346/0.2751, allocations: 10.82 MB / 0.7942 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01378/0.2889, allocations: 8.874 MB / 0.8029 GB, free: 9.469 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002073/0.2912, allocations: 51.69 kB / 0.8029 GB, free: 9.418 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004586/0.2958, allocations: 1.675 MB / 0.8046 GB, free: 7.742 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.005417/0.3012, allocations: 1.541 MB / 0.8061 GB, free: 6.195 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.002126/0.3034, allocations: 0.6734 MB / 0.8067 GB, free: 5.523 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.003534/0.3069, allocations: 2.286 MB / 0.809 GB, free: 3.23 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00214/0.3091, allocations: 1.376 MB / 0.8103 GB, free: 1.82 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002222/0.3113, allocations: 0.9886 MB / 0.8113 GB, free: 0.8281 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002009/0.3134, allocations: 1.019 MB / 0.8123 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003533/0.3138, allocations: 140 kB / 0.8124 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001894/0.3157, allocations: 0.7955 MB / 0.8132 GB, free: 14.87 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0007055/0.3164, allocations: 0.5686 MB / 0.8137 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.3178, allocations: 0.89 MB / 0.8146 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.003455/0.3212, allocations: 2.57 MB / 0.8171 GB, free: 10.83 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3213, allocations: 4 kB / 0.8171 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3213, allocations: 0 / 0.8171 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 5.284e-05/0.3213, allocations: 0 / 0.8171 GB, free: 10.82 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.003817/0.3252, allocations: 2.014 MB / 0.8191 GB, free: 8.754 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.3252, allocations: 12.03 kB / 0.8191 GB, free: 8.742 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002636/0.3255, allocations: 186.1 kB / 0.8193 GB, free: 8.551 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01141/0.3369, allocations: 2.054 MB / 0.8213 GB, free: 6.492 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002679/0.3396, allocations: 1.212 MB / 0.8225 GB, free: 5.223 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.024e-05/0.3397, allocations: 86.69 kB / 0.8225 GB, free: 5.137 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002847/0.34, allocations: 119.9 kB / 0.8226 GB, free: 5.02 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005943/0.346, allocations: 2.478 MB / 0.8251 GB, free: 2.391 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.829e-05/0.3461, allocations: 11.84 kB / 0.8251 GB, free: 2.379 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000161/0.3462, allocations: 55.98 kB / 0.8251 GB, free: 2.324 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000353/0.3466, allocations: 130.1 kB / 0.8253 GB, free: 2.195 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007342/0.3539, allocations: 2.541 MB / 0.8277 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/0.368, allocations: 10.02 MB / 0.8375 GB, free: 4.961 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006263/0.3743, allocations: 1.956 MB / 0.8394 GB, free: 2.973 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002835/0.3772, allocations: 0.966 MB / 0.8404 GB, free: 2.004 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-05/0.3773, allocations: 8.422 kB / 0.8404 GB, free: 1.996 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.754e-05/0.3773, allocations: 46.98 kB / 0.8404 GB, free: 1.941 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=53): time 2.234e-06/0.3773, allocations: 0 / 0.8404 GB, free: 1.941 MB / 0.6544 GB Notification: Performance of matching and sorting (n=81): time 0.03141/0.4088, allocations: 8.707 MB / 0.8489 GB, free: 9.172 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.4089, allocations: 64 kB / 0.849 GB, free: 9.094 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/0.4104, allocations: 1.105 MB / 0.8501 GB, free: 7.973 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001761/0.4106, allocations: 33.7 kB / 0.8501 GB, free: 7.934 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005302/0.4111, allocations: 0.7302 MB / 0.8508 GB, free: 7.195 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003257/0.4114, allocations: 287.9 kB / 0.8511 GB, free: 6.91 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000394/0.4118, allocations: 198.4 kB / 0.8513 GB, free: 6.711 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.412, allocations: 349.9 kB / 0.8516 GB, free: 6.363 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003019/0.415, allocations: 1.067 MB / 0.8527 GB, free: 5.293 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003197/0.4182, allocations: 1.309 MB / 0.8539 GB, free: 3.891 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006169/0.4245, allocations: 2.378 MB / 0.8563 GB, free: 1.422 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.928e-06/0.4245, allocations: 4 kB / 0.8563 GB, free: 1.418 MB / 0.67 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.009154/0.4337, allocations: 3.276 MB / 0.8595 GB, free: 14.1 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.4337, allocations: 12.86 kB / 0.8595 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.4338, allocations: 8 kB / 0.8595 GB, free: 14.08 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002814/0.4366, allocations: 0.7872 MB / 0.8603 GB, free: 13.27 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002046/0.4387, allocations: 411.3 kB / 0.8606 GB, free: 12.87 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01663/0.4553, allocations: 15.92 MB / 0.8762 GB, free: 11.83 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002409/0.4578, allocations: 287.5 kB / 0.8765 GB, free: 11.55 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002257/0.458, allocations: 59.89 kB / 0.8765 GB, free: 11.49 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009488/0.459, allocations: 408.3 kB / 0.8769 GB, free: 11.08 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000426/0.4594, allocations: 142.3 kB / 0.877 GB, free: 10.94 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009096/0.4685, allocations: 3.202 MB / 0.8802 GB, free: 7.699 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/0.4686, allocations: 11.94 kB / 0.8802 GB, free: 7.688 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.718e-05/0.4687, allocations: 8 kB / 0.8802 GB, free: 7.68 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.4687, allocations: 7.984 kB / 0.8802 GB, free: 7.672 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/0.481, allocations: 4.901 MB / 0.885 GB, free: 2.645 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.696e-05/0.481, allocations: 4 kB / 0.885 GB, free: 2.641 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001724/0.4828, allocations: 351.4 kB / 0.8853 GB, free: 2.297 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00256/0.4853, allocations: 0.7017 MB / 0.886 GB, free: 1.57 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/0.4855, allocations: 27.97 kB / 0.886 GB, free: 1.543 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0158/0.5014, allocations: 15.55 MB / 0.9012 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.5014, allocations: 7.984 kB / 0.9012 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008499/0.5099, allocations: 3.036 MB / 0.9042 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000911/0.5109, allocations: 383.2 kB / 0.9046 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003903/0.5113, allocations: 16 kB / 0.9046 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002034/0.5133, allocations: 299.4 kB / 0.9049 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003158/0.5136, allocations: 80.73 kB / 0.9049 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.5138, allocations: 39.91 kB / 0.905 GB, free: 12.92 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00115/0.5149, allocations: 0.7444 MB / 0.9057 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2e-07/0.5149, allocations: 0 / 0.9057 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001662/0.5166, allocations: 432 kB / 0.9061 GB, free: 11.75 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 simulation (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008378/0.525, allocations: 3.612 MB / 0.9096 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.008729/0.5338, allocations: 3.629 MB / 0.9132 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/0.5338, allocations: 4 kB / 0.9132 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.005223/0.5391, allocations: 2.36 MB / 0.9155 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002961/0.5421, allocations: 0.5237 MB / 0.916 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4401/0.9822, allocations: 15.8 MB / 0.9314 GB, free: 125.1 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/0.9836, allocations: 1.392 MB / 0.9328 GB, free: 124.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001554/0.9852, allocations: 380.9 kB / 0.9332 GB, free: 124.3 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000732/0.9859, allocations: 0.5981 MB / 0.9337 GB, free: 123.9 MB / 0.7325 GB Notification: Performance of SimCode: time 9.02e-07/0.9859, allocations: 0 / 0.9337 GB, free: 123.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08912/1.075, allocations: 41.26 MB / 0.974 GB, free: 101.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.79, allocations: 0 / 0.974 GB, free: 101.2 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1)