Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_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.004271/0.004271, allocations: 97.27 kB / 15.73 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 195.9 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.159/1.159, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001998/0.001998, allocations: 290.8 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8452/0.8452, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 95.86 kB / 0.681 GB, free: 7.457 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3381, allocations: 86.98 MB / 0.7659 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01164/0.3498, allocations: 10.89 MB / 0.7766 GB, free: 8.914 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0109/0.3607, allocations: 8.795 MB / 0.7851 GB, free: 92 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008527/0.3616, allocations: 55.69 kB / 0.7852 GB, free: 36 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003694/0.3653, allocations: 1.675 MB / 0.7868 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003222/0.3685, allocations: 1.569 MB / 0.7884 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.3699, allocations: 0.6744 MB / 0.789 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002255/0.3722, allocations: 2.282 MB / 0.7912 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001388/0.3736, allocations: 1.376 MB / 0.7926 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009968/0.3746, allocations: 1.012 MB / 0.7936 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.3756, allocations: 1.016 MB / 0.7946 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001594/0.3758, allocations: 140 kB / 0.7947 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001091/0.3769, allocations: 0.8033 MB / 0.7955 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000419/0.3773, allocations: 0.5608 MB / 0.796 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0007028/0.3781, allocations: 0.8861 MB / 0.7969 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002244/0.3803, allocations: 2.585 MB / 0.7994 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3803, allocations: 0 / 0.7994 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3803, allocations: 0 / 0.7994 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.556e-05/0.3803, allocations: 0 / 0.7994 GB, free: 1.391 MB / 0.5606 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.002764/0.3831, allocations: 2.07 MB / 0.8014 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.3831, allocations: 12.03 kB / 0.8015 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001983/0.3834, allocations: 190.1 kB / 0.8016 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01106/0.3944, allocations: 2.055 MB / 0.8036 GB, free: 13 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002034/0.3965, allocations: 1.233 MB / 0.8049 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.332e-05/0.3965, allocations: 86.69 kB / 0.8049 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002112/0.3968, allocations: 119.9 kB / 0.805 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00486/0.4016, allocations: 2.478 MB / 0.8075 GB, free: 8.875 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.884e-05/0.4017, allocations: 15.89 kB / 0.8075 GB, free: 8.859 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.4018, allocations: 51.98 kB / 0.8075 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003294/0.4022, allocations: 126.1 kB / 0.8077 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006728/0.4089, allocations: 2.541 MB / 0.8101 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01102/0.4199, allocations: 10.06 MB / 0.82 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005794/0.4257, allocations: 1.951 MB / 0.8219 GB, free: 9.441 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002568/0.4283, allocations: 0.9699 MB / 0.8228 GB, free: 8.469 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.4284, allocations: 4.438 kB / 0.8228 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.4284, allocations: 42.94 kB / 0.8229 GB, free: 8.414 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=53): time 1.774e-06/0.4284, allocations: 0 / 0.8229 GB, free: 8.414 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.02867/0.4571, allocations: 8.741 MB / 0.8314 GB, free: 15.62 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.4571, allocations: 72 kB / 0.8315 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/0.4583, allocations: 1.101 MB / 0.8325 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.311e-05/0.4584, allocations: 41.7 kB / 0.8326 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004612/0.4588, allocations: 0.7435 MB / 0.8333 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.4591, allocations: 297.5 kB / 0.8336 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003559/0.4595, allocations: 202.5 kB / 0.8338 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.4596, allocations: 337.9 kB / 0.8341 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002833/0.4624, allocations: 1.079 MB / 0.8352 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002933/0.4653, allocations: 1.305 MB / 0.8364 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005739/0.4711, allocations: 2.382 MB / 0.8388 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.4711, allocations: 4 kB / 0.8388 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008167/0.4793, allocations: 3.285 MB / 0.842 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.4793, allocations: 11.98 kB / 0.842 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.4793, allocations: 8 kB / 0.842 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002461/0.4818, allocations: 0.7878 MB / 0.8428 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.4836, allocations: 423.3 kB / 0.8432 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01428/0.4979, allocations: 15.92 MB / 0.8587 GB, free: 2.211 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.4998, allocations: 291.6 kB / 0.859 GB, free: 1.926 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.4999, allocations: 51.95 kB / 0.859 GB, free: 1.875 MB / 0.6231 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.0005229/0.5005, allocations: 401.4 kB / 0.8594 GB, free: 1.473 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.5007, allocations: 151.1 kB / 0.8596 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008214/0.5089, allocations: 3.198 MB / 0.8627 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.5089, allocations: 11.98 kB / 0.8627 GB, free: 14.08 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.5089, allocations: 4 kB / 0.8627 GB, free: 14.07 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.509, allocations: 11.98 kB / 0.8627 GB, free: 14.06 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.5192, allocations: 4.898 MB / 0.8675 GB, free: 9.043 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.5192, allocations: 4 kB / 0.8675 GB, free: 9.039 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/0.5208, allocations: 355.7 kB / 0.8678 GB, free: 8.691 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002114/0.5229, allocations: 0.6857 MB / 0.8685 GB, free: 7.98 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-05/0.523, allocations: 39.91 kB / 0.8685 GB, free: 7.941 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01351/0.5365, allocations: 15.54 MB / 0.8837 GB, free: 7.273 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5366, allocations: 4.031 kB / 0.8837 GB, free: 7.27 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007433/0.544, allocations: 3.06 MB / 0.8867 GB, free: 4.129 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006251/0.5446, allocations: 388 kB / 0.8871 GB, free: 3.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/0.5448, allocations: 20 kB / 0.8871 GB, free: 3.711 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/0.5466, allocations: 299.4 kB / 0.8874 GB, free: 3.418 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.5468, allocations: 80.48 kB / 0.8875 GB, free: 3.34 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.977e-05/0.5469, allocations: 39.97 kB / 0.8875 GB, free: 3.301 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001072/0.5479, allocations: 0.7327 MB / 0.8882 GB, free: 2.566 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.61e-07/0.548, allocations: 0 / 0.8882 GB, free: 2.566 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00112/0.5491, allocations: 439.9 kB / 0.8886 GB, free: 2.137 MB / 0.6544 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.007724/0.5568, allocations: 3.621 MB / 0.8922 GB, free: 14.43 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00764/0.5645, allocations: 3.629 MB / 0.8957 GB, free: 10.7 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.5645, allocations: 0 / 0.8957 GB, free: 10.7 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.004475/0.569, allocations: 2.371 MB / 0.898 GB, free: 8.223 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001816/0.5708, allocations: 0.5264 MB / 0.8985 GB, free: 7.723 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02997/0.6008, allocations: 15.86 MB / 0.914 GB, free: 7.43 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009005/0.6017, allocations: 1.392 MB / 0.9154 GB, free: 6.004 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001076/0.6028, allocations: 375.9 kB / 0.9158 GB, free: 5.633 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007407/0.6035, allocations: 0.6008 MB / 0.9163 GB, free: 5.031 MB / 0.6856 GB Notification: Performance of SimCode: time 2.5e-07/0.6035, allocations: 0 / 0.9163 GB, free: 5.031 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07646/0.68, allocations: 41.56 MB / 0.9569 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.88, allocations: 14.03 kB / 0.9569 GB, free: 12.08 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1)