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.004498/0.004498, allocations: 99.95 kB / 15.73 MB, free: 6.059 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.001236/0.001236, allocations: 189.5 kB / 16.67 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002508/0.002508, allocations: 275.6 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.002/1.002, allocations: 169.2 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002803/0.002803, allocations: 103.8 kB / 0.681 GB, free: 7.457 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4/0.4028, allocations: 86.96 MB / 0.7659 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01465/0.4175, allocations: 10.9 MB / 0.7765 GB, free: 8.918 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01359/0.4311, allocations: 8.803 MB / 0.7851 GB, free: 88 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007961/0.432, allocations: 59.62 kB / 0.7852 GB, free: 28 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.004086/0.4361, allocations: 1.655 MB / 0.7868 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00342/0.4395, allocations: 1.532 MB / 0.7883 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.4411, allocations: 0.6756 MB / 0.789 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002476/0.4436, allocations: 2.286 MB / 0.7912 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00174/0.4453, allocations: 1.372 MB / 0.7925 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.4465, allocations: 0.9887 MB / 0.7935 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001311/0.4479, allocations: 1.015 MB / 0.7945 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002055/0.4481, allocations: 140 kB / 0.7946 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.4495, allocations: 0.8033 MB / 0.7954 GB, free: 5.5 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0005361/0.45, allocations: 0.5608 MB / 0.796 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0008795/0.4509, allocations: 0.8861 MB / 0.7968 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002733/0.4536, allocations: 2.585 MB / 0.7994 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4537, allocations: 0 / 0.7994 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4537, allocations: 3.938 kB / 0.7994 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.234e-05/0.4537, allocations: 0 / 0.7994 GB, free: 1.453 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.003159/0.4569, allocations: 2.066 MB / 0.8014 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.4569, allocations: 8.031 kB / 0.8014 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000233/0.4571, allocations: 194.1 kB / 0.8016 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01116/0.4683, allocations: 2.059 MB / 0.8036 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.4704, allocations: 1.221 MB / 0.8048 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.646e-05/0.4705, allocations: 90.69 kB / 0.8049 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/0.4707, allocations: 119.9 kB / 0.805 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005614/0.4764, allocations: 2.489 MB / 0.8074 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.185e-05/0.4764, allocations: 11.89 kB / 0.8074 GB, free: 8.926 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000154/0.4766, allocations: 55.98 kB / 0.8075 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003619/0.477, allocations: 130.1 kB / 0.8076 GB, free: 8.742 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00756/0.4845, allocations: 2.537 MB / 0.8101 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01388/0.4984, allocations: 10.05 MB / 0.8199 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006638/0.5051, allocations: 1.948 MB / 0.8218 GB, free: 9.512 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002931/0.508, allocations: 0.9738 MB / 0.8227 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 4.535e-05/0.5081, allocations: 4.438 kB / 0.8227 GB, free: 8.531 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/0.5081, allocations: 43 kB / 0.8228 GB, free: 8.48 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=53): time 2.615e-06/0.5081, allocations: 0 / 0.8228 GB, free: 8.48 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.03239/0.5405, allocations: 8.744 MB / 0.8313 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.5406, allocations: 64 kB / 0.8314 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001518/0.5421, allocations: 1.105 MB / 0.8325 GB, free: 14.49 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.605e-05/0.5423, allocations: 37.7 kB / 0.8325 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006174/0.5429, allocations: 0.7473 MB / 0.8332 GB, free: 13.69 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000288/0.5432, allocations: 293.5 kB / 0.8335 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004232/0.5436, allocations: 206.5 kB / 0.8337 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001675/0.5438, allocations: 341.9 kB / 0.834 GB, free: 12.85 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003137/0.5469, allocations: 1.071 MB / 0.8351 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003342/0.5503, allocations: 1.305 MB / 0.8364 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006481/0.5568, allocations: 2.382 MB / 0.8387 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.5568, allocations: 8 kB / 0.8387 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.009288/0.5661, allocations: 3.289 MB / 0.8419 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.5661, allocations: 8 kB / 0.8419 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.5661, allocations: 12.09 kB / 0.8419 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002828/0.569, allocations: 0.7872 MB / 0.8427 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/0.5709, allocations: 411.2 kB / 0.8431 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01744/0.5883, allocations: 15.92 MB / 0.8586 GB, free: 2.285 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002235/0.5906, allocations: 291.5 kB / 0.8589 GB, free: 2 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.5907, allocations: 47.97 kB / 0.859 GB, free: 1.953 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.0007164/0.5914, allocations: 400.5 kB / 0.8593 GB, free: 1.555 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.5917, allocations: 151.1 kB / 0.8595 GB, free: 1.406 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009188/0.6009, allocations: 3.21 MB / 0.8626 GB, free: 14.16 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.6009, allocations: 8 kB / 0.8626 GB, free: 14.15 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.6009, allocations: 12 kB / 0.8626 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.601, allocations: 7.922 kB / 0.8626 GB, free: 14.13 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01132/0.6123, allocations: 4.898 MB / 0.8674 GB, free: 9.113 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.6123, allocations: 0 / 0.8674 GB, free: 9.113 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/0.614, allocations: 355.5 kB / 0.8678 GB, free: 8.766 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002424/0.6165, allocations: 0.6976 MB / 0.8684 GB, free: 8.043 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.605e-05/0.6166, allocations: 31.97 kB / 0.8685 GB, free: 8.012 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01669/0.6333, allocations: 15.54 MB / 0.8837 GB, free: 7.344 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.6333, allocations: 8.125 kB / 0.8837 GB, free: 7.336 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008552/0.6419, allocations: 3.052 MB / 0.8866 GB, free: 4.203 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006628/0.6425, allocations: 388 kB / 0.887 GB, free: 3.805 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/0.6427, allocations: 24 kB / 0.887 GB, free: 3.781 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001887/0.6446, allocations: 295.4 kB / 0.8873 GB, free: 3.492 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.6449, allocations: 84.48 kB / 0.8874 GB, free: 3.41 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.645, allocations: 35.97 kB / 0.8874 GB, free: 3.375 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001038/0.646, allocations: 0.7366 MB / 0.8882 GB, free: 2.637 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.646, allocations: 0 / 0.8882 GB, free: 2.637 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001353/0.6474, allocations: 439.9 kB / 0.8886 GB, free: 2.207 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.00874/0.6562, allocations: 3.621 MB / 0.8921 GB, free: 14.5 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00885/0.665, allocations: 3.621 MB / 0.8956 GB, free: 10.78 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.665, allocations: 4 kB / 0.8956 GB, free: 10.77 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.005227/0.6703, allocations: 2.383 MB / 0.898 GB, free: 8.285 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002228/0.6725, allocations: 0.5284 MB / 0.8985 GB, free: 7.789 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03485/0.7074, allocations: 15.86 MB / 0.914 GB, free: 7.5 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/0.7086, allocations: 1.392 MB / 0.9153 GB, free: 6.074 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001381/0.71, allocations: 379.8 kB / 0.9157 GB, free: 5.699 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008845/0.7109, allocations: 0.6046 MB / 0.9163 GB, free: 5.094 MB / 0.6856 GB Notification: Performance of SimCode: time 6.01e-07/0.7109, allocations: 0 / 0.9163 GB, free: 5.094 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09748/0.8083, allocations: 41.55 MB / 0.9569 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.35/15.16, allocations: 5.688 kB / 0.9569 GB, free: 12.15 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)