Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",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.007029/0.007029, allocations: 103.7 kB / 15.73 MB, free: 6.039 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.001257/0.001257, allocations: 194 kB / 16.67 MB, free: 5.969 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002267/0.002267, allocations: 282.3 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9948/0.9948, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002046, allocations: 96.28 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1704, allocations: 86.98 MB / 0.7659 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008116/0.1785, allocations: 6.076 MB / 0.7718 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.3709/0.5494, allocations: 3.123 MB / 0.7749 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007345/0.5502, allocations: 30.06 kB / 0.7749 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00266/0.553, allocations: 0.9326 MB / 0.7758 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001558/0.5545, allocations: 493.4 kB / 0.7763 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.5561, allocations: 486.8 kB / 0.7768 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002043/0.5581, allocations: 1.098 MB / 0.7778 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.5596, allocations: 0.6369 MB / 0.7785 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001175/0.5608, allocations: 452.5 kB / 0.7789 GB, free: 8.105 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.5618, allocations: 477.3 kB / 0.7793 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002262/0.5621, allocations: 57.72 kB / 0.7794 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001251/0.5633, allocations: 482 kB / 0.7799 GB, free: 7.977 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004372/0.5638, allocations: 284.5 kB / 0.7801 GB, free: 7.949 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000685/0.5645, allocations: 401.5 kB / 0.7805 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002077/0.5666, allocations: 1.171 MB / 0.7817 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.5666, allocations: 3.5 kB / 0.7817 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.896e-06/0.5666, allocations: 3.094 kB / 0.7817 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.352e-05/0.5667, allocations: 4 kB / 0.7817 GB, free: 7.645 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002608/0.5693, allocations: 1.053 MB / 0.7827 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.5694, allocations: 9.406 kB / 0.7827 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001615/0.5695, allocations: 117.5 kB / 0.7828 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001856/0.5714, allocations: 219.1 kB / 0.783 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.5727, allocations: 0.5804 MB / 0.7836 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.531e-05/0.5727, allocations: 45.95 kB / 0.7836 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001378/0.5729, allocations: 69.73 kB / 0.7837 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001782/0.5747, allocations: 1.031 MB / 0.7847 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.517e-05/0.5747, allocations: 12.61 kB / 0.7847 GB, free: 5.848 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.721e-05/0.5748, allocations: 27.84 kB / 0.7848 GB, free: 5.832 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.242e-05/0.5749, allocations: 68.12 kB / 0.7848 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.5759, allocations: 0.6906 MB / 0.7855 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004903/0.5808, allocations: 5.736 MB / 0.7911 GB, free: 16.65 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008184/0.5817, allocations: 0.5993 MB / 0.7917 GB, free: 16.28 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00077/0.5825, allocations: 431 kB / 0.7921 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 4.562e-05/0.5826, allocations: 8.469 kB / 0.7921 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.5826, allocations: 39.88 kB / 0.7921 GB, free: 16.1 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=41): time 2.625e-06/0.5826, allocations: 0 / 0.7921 GB, free: 16.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42): time 0.004371/0.587, allocations: 2.009 MB / 0.7941 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.587, allocations: 58.59 kB / 0.7942 GB, free: 15 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005009/0.5876, allocations: 456.5 kB / 0.7946 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.774e-05/0.5876, allocations: 29.7 kB / 0.7946 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/0.5878, allocations: 387.7 kB / 0.795 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.588, allocations: 150.1 kB / 0.7951 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.5881, allocations: 114.1 kB / 0.7952 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.5883, allocations: 364.6 kB / 0.7956 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000334/0.5886, allocations: 238.4 kB / 0.7958 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004108/0.589, allocations: 464.8 kB / 0.7963 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008486/0.5899, allocations: 0.7483 MB / 0.797 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.5899, allocations: 5.719 kB / 0.797 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001949/0.5919, allocations: 1.038 MB / 0.798 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.5919, allocations: 14.62 kB / 0.798 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.592, allocations: 8.156 kB / 0.798 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.5931, allocations: 322.7 kB / 0.7983 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003725/0.5934, allocations: 102 kB / 0.7984 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008017/0.6015, allocations: 7.47 MB / 0.8057 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005935/0.6021, allocations: 29.11 kB / 0.8058 GB, free: 6.066 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.612e-05/0.6022, allocations: 26.33 kB / 0.8058 GB, free: 6.062 MB / 0.5762 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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004307/0.6027, allocations: 240.4 kB / 0.806 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.6028, allocations: 65.41 kB / 0.8061 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/0.6047, allocations: 0.8943 MB / 0.8069 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.6047, allocations: 8.531 kB / 0.807 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/0.6048, allocations: 9.156 kB / 0.807 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.6048, allocations: 1.922 kB / 0.807 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003487/0.6083, allocations: 1.679 MB / 0.8086 GB, free: 4.605 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.958e-06/0.6083, allocations: 1.438 kB / 0.8086 GB, free: 4.605 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.6085, allocations: 46.61 kB / 0.8087 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.6096, allocations: 305.8 kB / 0.8089 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.6e-05/0.6096, allocations: 11.19 kB / 0.809 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007932/0.6176, allocations: 7.46 MB / 0.8162 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/0.6176, allocations: 10.41 kB / 0.8162 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002093/0.6197, allocations: 0.9827 MB / 0.8172 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004258/0.6202, allocations: 178.7 kB / 0.8174 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.6204, allocations: 8.797 kB / 0.8174 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003549/0.6207, allocations: 20.39 kB / 0.8174 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/0.6209, allocations: 43.19 kB / 0.8174 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.728e-05/0.621, allocations: 18.03 kB / 0.8175 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000457/0.6214, allocations: 307.9 kB / 0.8178 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.6e-07/0.6214, allocations: 0 / 0.8178 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001139/0.6226, allocations: 194.5 kB / 0.8179 GB, free: 13.28 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,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.002119/0.6247, allocations: 1.539 MB / 0.8194 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002162/0.6269, allocations: 1.198 MB / 0.8206 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.627, allocations: 0 / 0.8206 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001378/0.6283, allocations: 0.8598 MB / 0.8215 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001392/0.6298, allocations: 203.5 kB / 0.8217 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.6404, allocations: 5.822 MB / 0.8273 GB, free: 7.41 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008798/0.6413, allocations: 0.9908 MB / 0.8283 GB, free: 6.68 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004974/0.6418, allocations: 97.72 kB / 0.8284 GB, free: 6.656 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00041/0.6422, allocations: 227.9 kB / 0.8286 GB, free: 6.48 MB / 0.5919 GB Notification: Performance of SimCode: time 9.32e-07/0.6422, allocations: 3.938 kB / 0.8286 GB, free: 6.477 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0526/0.6948, allocations: 15.29 MB / 0.8435 GB, free: 15.19 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.74, allocations: 23.92 kB / 0.8436 GB, free: 15.17 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1)