Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.Loads.Examples.TestImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",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.005644/0.005645, allocations: 101.1 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.001175/0.001175, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0022/0.0022, allocations: 282.4 kB / 290.8 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9888/0.9888, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 103.8 kB / 0.681 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1532, allocations: 86.97 MB / 0.7659 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006081/0.1593, allocations: 4.848 MB / 0.7706 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003862/0.1632, allocations: 2.436 MB / 0.773 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004224/0.1636, allocations: 23.81 kB / 0.773 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001168/0.1648, allocations: 417.8 kB / 0.7734 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001084/0.1659, allocations: 465.7 kB / 0.7739 GB, free: 0.7617 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008516/0.1668, allocations: 379.1 kB / 0.7742 GB, free: 400 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3135/0.4803, allocations: 0.9084 MB / 0.7751 GB, free: 8.617 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007127/0.481, allocations: 351.1 kB / 0.7755 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006826/0.4817, allocations: 340.4 kB / 0.7758 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005861/0.4823, allocations: 349.9 kB / 0.7761 GB, free: 8.523 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.4825, allocations: 41.47 kB / 0.7762 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008236/0.4833, allocations: 402.8 kB / 0.7765 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002552/0.4836, allocations: 178.5 kB / 0.7767 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004497/0.484, allocations: 318.4 kB / 0.777 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001367/0.4854, allocations: 0.8802 MB / 0.7779 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.4854, allocations: 0 / 0.7779 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.182e-06/0.4854, allocations: 0 / 0.7779 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.771e-05/0.4854, allocations: 0.5625 kB / 0.7779 GB, free: 8.281 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001681/0.4871, allocations: 0.9389 MB / 0.7788 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.4872, allocations: 11.8 kB / 0.7788 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001256/0.4873, allocations: 93.09 kB / 0.7789 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001381/0.4887, allocations: 206.6 kB / 0.7791 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008621/0.4896, allocations: 0.5304 MB / 0.7796 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.303e-05/0.4896, allocations: 38.5 kB / 0.7796 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.796e-05/0.4897, allocations: 49.66 kB / 0.7797 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.4908, allocations: 0.845 MB / 0.7805 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.675e-05/0.4908, allocations: 9.891 kB / 0.7805 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.934e-05/0.4909, allocations: 24.5 kB / 0.7806 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.78e-05/0.491, allocations: 60.33 kB / 0.7806 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008459/0.4919, allocations: 0.5689 MB / 0.7812 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003925/0.4958, allocations: 5.638 MB / 0.7867 GB, free: 18.29 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000587/0.4964, allocations: 463.3 kB / 0.7871 GB, free: 18.2 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.4967, allocations: 226.4 kB / 0.7873 GB, free: 18.11 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.4967, allocations: 5.906 kB / 0.7873 GB, free: 18.11 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.4968, allocations: 42.39 kB / 0.7874 GB, free: 18.07 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 2.004e-06/0.4968, allocations: 0 / 0.7874 GB, free: 18.07 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.002509/0.4993, allocations: 1.5 MB / 0.7888 GB, free: 17.15 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.4993, allocations: 58.89 kB / 0.7889 GB, free: 17.09 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004747/0.4998, allocations: 0.489 MB / 0.7894 GB, free: 16.86 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.4999, allocations: 29.7 kB / 0.7894 GB, free: 16.82 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.5001, allocations: 352.3 kB / 0.7897 GB, free: 16.54 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.866e-05/0.5001, allocations: 125.6 kB / 0.7899 GB, free: 16.44 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.5003, allocations: 111.3 kB / 0.79 GB, free: 16.38 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.5005, allocations: 367.5 kB / 0.7903 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.5007, allocations: 197.7 kB / 0.7905 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/0.5011, allocations: 449 kB / 0.7909 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006389/0.5017, allocations: 0.6952 MB / 0.7916 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5017, allocations: 2.875 kB / 0.7916 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001142/0.5029, allocations: 0.7992 MB / 0.7924 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.5029, allocations: 12.08 kB / 0.7924 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.5029, allocations: 10.69 kB / 0.7924 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004703/0.5034, allocations: 153.7 kB / 0.7926 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004386/0.5039, allocations: 124.1 kB / 0.7927 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003435/0.5073, allocations: 4.347 MB / 0.7969 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005046/0.5078, allocations: 31.44 kB / 0.797 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.339e-05/0.5079, allocations: 29.44 kB / 0.797 GB, free: 10.46 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003692/0.5083, allocations: 223.4 kB / 0.7972 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.5084, allocations: 63.84 kB / 0.7973 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.5094, allocations: 0.5938 MB / 0.7978 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5094, allocations: 3.875 kB / 0.7978 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.5095, allocations: 0 / 0.7978 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.5095, allocations: 5.094 kB / 0.7978 GB, free: 9.992 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.5113, allocations: 1.264 MB / 0.7991 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.5113, allocations: 3.906 kB / 0.7991 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000251/0.5115, allocations: 52.45 kB / 0.7991 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004308/0.512, allocations: 143.1 kB / 0.7993 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/0.512, allocations: 16.66 kB / 0.7993 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003622/0.5156, allocations: 4.337 MB / 0.8035 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.5157, allocations: 9 kB / 0.8035 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.5167, allocations: 0.7088 MB / 0.8042 GB, free: 4.551 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002527/0.517, allocations: 170.5 kB / 0.8044 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.722e-05/0.517, allocations: 7.375 kB / 0.8044 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.5173, allocations: 22.56 kB / 0.8044 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.159e-05/0.5174, allocations: 39.55 kB / 0.8044 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.5174, allocations: 14.62 kB / 0.8045 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004131/0.5178, allocations: 327.2 kB / 0.8048 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5179, allocations: 0 / 0.8048 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007094/0.5186, allocations: 143.3 kB / 0.8049 GB, free: 4.219 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001378/0.52, allocations: 1.253 MB / 0.8061 GB, free: 3.266 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001605/0.5216, allocations: 1.043 MB / 0.8072 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.5216, allocations: 2.562 kB / 0.8072 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008195/0.5224, allocations: 0.7305 MB / 0.8079 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.5235, allocations: 213.2 kB / 0.8081 GB, free: 1.867 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007615/0.5311, allocations: 5.09 MB / 0.813 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.5317, allocations: 0.9056 MB / 0.8139 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004376/0.5322, allocations: 123.1 kB / 0.814 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002744/0.5325, allocations: 194.7 kB / 0.8142 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of SimCode: time 7.12e-07/0.5325, allocations: 0 / 0.8142 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04179/0.5743, allocations: 12.73 MB / 0.8267 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.885/10.46, allocations: 8.062 kB / 0.8267 GB, free: 10.27 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)