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.004372/0.004372, allocations: 96.91 kB / 15.73 MB, free: 6.484 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.00151/0.00151, allocations: 191.7 kB / 16.67 MB, free: 6.391 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00256/0.00256, allocations: 286.4 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.052/1.052, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002732/0.002733, allocations: 95.84 kB / 0.681 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1575, allocations: 86.98 MB / 0.7659 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.007834/0.1653, allocations: 6.076 MB / 0.7718 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.2819/0.4473, allocations: 3.131 MB / 0.7749 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005587/0.4479, allocations: 26.69 kB / 0.7749 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002127/0.45, allocations: 0.9338 MB / 0.7758 GB, free: 7.969 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009059/0.451, allocations: 472.4 kB / 0.7763 GB, free: 7.949 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009406/0.4519, allocations: 490.9 kB / 0.7768 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009265/0.4529, allocations: 1.092 MB / 0.7778 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007922/0.4537, allocations: 0.6373 MB / 0.7784 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004361/0.4541, allocations: 437.7 kB / 0.7789 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004773/0.4546, allocations: 480.3 kB / 0.7793 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.741e-05/0.4547, allocations: 58.47 kB / 0.7794 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006784/0.4554, allocations: 494.3 kB / 0.7798 GB, free: 7.543 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.4556, allocations: 285.8 kB / 0.7801 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003027/0.4559, allocations: 399.6 kB / 0.7805 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009933/0.4569, allocations: 1.182 MB / 0.7817 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4569, allocations: 0 / 0.7817 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4569, allocations: 0 / 0.7817 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.4569, allocations: 1.375 kB / 0.7817 GB, free: 7.207 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.00127/0.4582, allocations: 1.073 MB / 0.7827 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.4583, allocations: 9.562 kB / 0.7827 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/0.4584, allocations: 117.6 kB / 0.7828 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001415/0.4598, allocations: 226.2 kB / 0.783 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007954/0.4606, allocations: 0.5853 MB / 0.7836 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.4606, allocations: 46.95 kB / 0.7837 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.4607, allocations: 67.91 kB / 0.7837 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.462, allocations: 1.032 MB / 0.7847 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.462, allocations: 10.66 kB / 0.7847 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.057e-05/0.4621, allocations: 27.84 kB / 0.7848 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.472e-05/0.4622, allocations: 71.19 kB / 0.7848 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008662/0.463, allocations: 0.6918 MB / 0.7855 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004129/0.4672, allocations: 5.738 MB / 0.7911 GB, free: 16.48 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000728/0.4679, allocations: 0.6063 MB / 0.7917 GB, free: 16.1 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006932/0.4686, allocations: 426.5 kB / 0.7921 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.4687, allocations: 9.281 kB / 0.7921 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.4687, allocations: 34.94 kB / 0.7922 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=41): time 1.603e-06/0.4687, allocations: 0 / 0.7922 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42): time 0.003822/0.4725, allocations: 2.019 MB / 0.7941 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.4726, allocations: 54.78 kB / 0.7942 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004062/0.473, allocations: 457.2 kB / 0.7946 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.734e-05/0.4731, allocations: 31.39 kB / 0.7946 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.4732, allocations: 399.2 kB / 0.795 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.794e-05/0.4733, allocations: 161 kB / 0.7952 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.4735, allocations: 110 kB / 0.7953 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.4736, allocations: 364.2 kB / 0.7956 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.4739, allocations: 243 kB / 0.7959 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.4743, allocations: 459.3 kB / 0.7963 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007004/0.475, allocations: 0.755 MB / 0.797 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.475, allocations: 2.531 kB / 0.797 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00174/0.4767, allocations: 1.045 MB / 0.7981 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.4768, allocations: 11.94 kB / 0.7981 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4768, allocations: 7.25 kB / 0.7981 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009957/0.4778, allocations: 319.2 kB / 0.7984 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003062/0.4781, allocations: 99.05 kB / 0.7985 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007906/0.486, allocations: 7.469 MB / 0.8058 GB, free: 5.875 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004563/0.4865, allocations: 32.88 kB / 0.8058 GB, free: 5.863 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.767e-05/0.4866, allocations: 30.66 kB / 0.8058 GB, free: 5.855 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.0003735/0.4869, allocations: 240.7 kB / 0.8061 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.4871, allocations: 65.09 kB / 0.8061 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001798/0.4889, allocations: 0.8944 MB / 0.807 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.4889, allocations: 4.594 kB / 0.807 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4889, allocations: 5.078 kB / 0.807 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.4889, allocations: 1.922 kB / 0.807 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002746/0.4917, allocations: 1.68 MB / 0.8087 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.4917, allocations: 2.5 kB / 0.8087 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.4919, allocations: 42.48 kB / 0.8087 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009112/0.4928, allocations: 311 kB / 0.809 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.636e-05/0.4928, allocations: 8.406 kB / 0.809 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007454/0.5003, allocations: 7.473 MB / 0.8163 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.5003, allocations: 5.25 kB / 0.8163 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.502, allocations: 0.9947 MB / 0.8173 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/0.5023, allocations: 178.1 kB / 0.8174 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.659e-05/0.5024, allocations: 8.594 kB / 0.8175 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002981/0.5027, allocations: 24.06 kB / 0.8175 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.5028, allocations: 43.45 kB / 0.8175 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.838e-05/0.5028, allocations: 13.48 kB / 0.8175 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003603/0.5032, allocations: 307.5 kB / 0.8178 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.6e-07/0.5032, allocations: 4 kB / 0.8178 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009399/0.5042, allocations: 193.9 kB / 0.818 GB, free: 13.07 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.001963/0.5061, allocations: 1.539 MB / 0.8195 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001825/0.508, allocations: 1.212 MB / 0.8207 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.508, allocations: 1.031 kB / 0.8207 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.5092, allocations: 0.8641 MB / 0.8215 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.5102, allocations: 197.9 kB / 0.8217 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007976/0.5182, allocations: 5.84 MB / 0.8274 GB, free: 7.176 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000626/0.5189, allocations: 0.9987 MB / 0.8284 GB, free: 6.434 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002927/0.5192, allocations: 99.66 kB / 0.8285 GB, free: 6.41 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002805/0.5195, allocations: 224.1 kB / 0.8287 GB, free: 6.238 MB / 0.5919 GB Notification: Performance of SimCode: time 4.2e-07/0.5195, allocations: 3.938 kB / 0.8287 GB, free: 6.234 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4943/1.014, allocations: 15.28 MB / 0.8436 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/11.66, allocations: 26.98 kB / 0.8437 GB, free: 14.94 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)