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.004254/0.004254, allocations: 100.2 kB / 15.73 MB, free: 6.062 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.00199/0.00199, allocations: 189.1 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002466/0.002466, allocations: 287.8 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.004/1.004, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004002/0.004003, allocations: 95.84 kB / 0.681 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.405/0.409, allocations: 86.98 MB / 0.7659 GB, free: 4.016 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01368/0.4227, allocations: 10.89 MB / 0.7765 GB, free: 9.082 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01374/0.4365, allocations: 8.803 MB / 0.7851 GB, free: 256 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001153/0.4377, allocations: 59.62 kB / 0.7852 GB, free: 196 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.004467/0.4422, allocations: 1.656 MB / 0.7868 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004967/0.4471, allocations: 1.538 MB / 0.7883 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001939/0.4491, allocations: 0.6782 MB / 0.789 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003207/0.4523, allocations: 2.277 MB / 0.7912 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002117/0.4545, allocations: 1.372 MB / 0.7925 GB, free: 8.617 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001568/0.456, allocations: 0.9809 MB / 0.7935 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001769/0.4578, allocations: 1.027 MB / 0.7945 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003319/0.4582, allocations: 139.9 kB / 0.7946 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.4598, allocations: 0.7994 MB / 0.7954 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0005676/0.4603, allocations: 0.5686 MB / 0.796 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009098/0.4613, allocations: 0.8823 MB / 0.7968 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002997/0.4643, allocations: 2.574 MB / 0.7994 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.4643, allocations: 4 kB / 0.7994 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.392e-06/0.4643, allocations: 0 / 0.7994 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.022e-05/0.4643, allocations: 0 / 0.7994 GB, free: 1.621 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.00333/0.4677, allocations: 2.078 MB / 0.8014 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.4677, allocations: 11.97 kB / 0.8014 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000245/0.468, allocations: 198 kB / 0.8016 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01055/0.4785, allocations: 2.055 MB / 0.8036 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002409/0.4809, allocations: 1.221 MB / 0.8048 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.017e-05/0.481, allocations: 90.69 kB / 0.8049 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002412/0.4813, allocations: 111.9 kB / 0.805 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00536/0.4867, allocations: 2.482 MB / 0.8074 GB, free: 9.098 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.136e-05/0.4867, allocations: 11.89 kB / 0.8074 GB, free: 9.086 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001609/0.4869, allocations: 55.98 kB / 0.8075 GB, free: 9.031 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003529/0.4872, allocations: 130.1 kB / 0.8076 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006871/0.4941, allocations: 2.541 MB / 0.8101 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01379/0.5079, allocations: 10.04 MB / 0.8199 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005884/0.5138, allocations: 1.944 MB / 0.8218 GB, free: 9.68 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002594/0.5164, allocations: 0.9815 MB / 0.8227 GB, free: 8.695 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 4.085e-05/0.5165, allocations: 12.42 kB / 0.8228 GB, free: 8.684 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.5165, allocations: 35 kB / 0.8228 GB, free: 8.641 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=53): time 2.204e-06/0.5166, allocations: 0 / 0.8228 GB, free: 8.641 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.03062/0.5472, allocations: 8.74 MB / 0.8313 GB, free: 15.85 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.5473, allocations: 64 kB / 0.8314 GB, free: 15.78 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/0.5487, allocations: 1.105 MB / 0.8325 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.5489, allocations: 41.7 kB / 0.8325 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006034/0.5495, allocations: 0.7551 MB / 0.8332 GB, free: 13.85 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002908/0.5498, allocations: 289.5 kB / 0.8335 GB, free: 13.56 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003998/0.5502, allocations: 198.5 kB / 0.8337 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.5503, allocations: 345.9 kB / 0.834 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002886/0.5532, allocations: 1.075 MB / 0.8351 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003051/0.5563, allocations: 1.313 MB / 0.8364 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005879/0.5622, allocations: 2.378 MB / 0.8387 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.5622, allocations: 0 / 0.8387 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008753/0.571, allocations: 3.293 MB / 0.8419 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.571, allocations: 8 kB / 0.8419 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.571, allocations: 7.984 kB / 0.8419 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002826/0.5738, allocations: 0.7915 MB / 0.8427 GB, free: 3.902 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001868/0.5757, allocations: 419.2 kB / 0.8431 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0178/0.5935, allocations: 15.91 MB / 0.8586 GB, free: 2.449 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00227/0.5958, allocations: 295.6 kB / 0.8589 GB, free: 2.16 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.596, allocations: 51.97 kB / 0.859 GB, free: 2.109 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.0007235/0.5967, allocations: 403.8 kB / 0.8593 GB, free: 1.707 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002661/0.597, allocations: 151.1 kB / 0.8595 GB, free: 1.559 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008832/0.6058, allocations: 3.202 MB / 0.8626 GB, free: 14.32 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/0.6058, allocations: 8 kB / 0.8626 GB, free: 14.31 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.6059, allocations: 8 kB / 0.8626 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.6059, allocations: 11.86 kB / 0.8626 GB, free: 14.29 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/0.6169, allocations: 4.902 MB / 0.8674 GB, free: 9.27 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.617, allocations: 4 kB / 0.8674 GB, free: 9.266 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/0.6186, allocations: 355.7 kB / 0.8678 GB, free: 8.918 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002432/0.621, allocations: 0.6975 MB / 0.8685 GB, free: 8.195 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.111e-05/0.6211, allocations: 31.97 kB / 0.8685 GB, free: 8.164 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01679/0.6379, allocations: 15.55 MB / 0.8837 GB, free: 7.492 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.6379, allocations: 4 kB / 0.8837 GB, free: 7.488 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007989/0.6459, allocations: 3.048 MB / 0.8866 GB, free: 4.359 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007229/0.6467, allocations: 388 kB / 0.887 GB, free: 3.961 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.6469, allocations: 20 kB / 0.887 GB, free: 3.941 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/0.6487, allocations: 295.4 kB / 0.8873 GB, free: 3.652 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.6489, allocations: 76.48 kB / 0.8874 GB, free: 3.578 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.792e-05/0.649, allocations: 39.97 kB / 0.8874 GB, free: 3.539 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001025/0.6501, allocations: 0.7444 MB / 0.8882 GB, free: 2.793 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6501, allocations: 0 / 0.8882 GB, free: 2.793 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001714/0.6518, allocations: 432 kB / 0.8886 GB, free: 2.371 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.009126/0.6609, allocations: 3.625 MB / 0.8921 GB, free: 14.65 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.008745/0.6697, allocations: 3.625 MB / 0.8956 GB, free: 10.93 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.6697, allocations: 0 / 0.8956 GB, free: 10.93 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.00496/0.6747, allocations: 2.383 MB / 0.898 GB, free: 8.445 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002316/0.677, allocations: 0.5268 MB / 0.8985 GB, free: 7.945 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03329/0.7103, allocations: 15.85 MB / 0.914 GB, free: 7.66 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001211/0.7115, allocations: 1.392 MB / 0.9153 GB, free: 6.234 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001325/0.7129, allocations: 379.8 kB / 0.9157 GB, free: 5.859 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008922/0.7138, allocations: 0.5969 MB / 0.9163 GB, free: 5.262 MB / 0.6856 GB Notification: Performance of SimCode: time 5.81e-07/0.7138, allocations: 0 / 0.9163 GB, free: 5.262 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5824/1.296, allocations: 41.56 MB / 0.9569 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.54/16.83, allocations: 4.797 kB / 0.9569 GB, free: 12.32 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1)