Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.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.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",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.004236/0.004236, allocations: 103.1 kB / 15.74 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.001174/0.001174, allocations: 191 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.342/1.342, 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.002431/0.002431, allocations: 289.7 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 0.9591/0.9591, allocations: 169.3 MB / 0.4983 GB, free: 4.398 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002547/0.002547, allocations: 95.84 kB / 0.681 GB, free: 7.453 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4044/0.407, allocations: 86.98 MB / 0.7659 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004825/0.4119, allocations: 3.071 MB / 0.7689 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003047/0.4149, allocations: 1.898 MB / 0.7707 GB, free: 14.87 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.4151, allocations: 4 kB / 0.7707 GB, free: 14.86 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008523/0.416, allocations: 284.9 kB / 0.771 GB, free: 14.59 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004095/0.4164, allocations: 203.1 kB / 0.7712 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005605/0.417, allocations: 243.3 kB / 0.7714 GB, free: 14.15 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003589/0.4173, allocations: 326.7 kB / 0.7718 GB, free: 13.83 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003064/0.4177, allocations: 173 kB / 0.7719 GB, free: 13.65 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.4178, allocations: 139.5 kB / 0.7721 GB, free: 13.52 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002739/0.4181, allocations: 155.5 kB / 0.7722 GB, free: 13.36 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.305e-05/0.4182, allocations: 20 kB / 0.7722 GB, free: 13.34 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000554/0.4187, allocations: 399.2 kB / 0.7726 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.223e-05/0.4188, allocations: 91.72 kB / 0.7727 GB, free: 12.86 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.4189, allocations: 119.4 kB / 0.7728 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005971/0.4195, allocations: 495.6 kB / 0.7733 GB, free: 12.27 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4196, allocations: 0 / 0.7733 GB, free: 12.27 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.122e-06/0.4196, allocations: 0 / 0.7733 GB, free: 12.27 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.4196, allocations: 0 / 0.7733 GB, free: 12.27 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008267/0.4204, allocations: 0.5685 MB / 0.7738 GB, free: 11.65 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.4204, allocations: 15.97 kB / 0.7738 GB, free: 11.63 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.637e-05/0.4205, allocations: 54.73 kB / 0.7739 GB, free: 11.57 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007493/0.4213, allocations: 108.7 kB / 0.774 GB, free: 11.46 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.4216, allocations: 270.8 kB / 0.7743 GB, free: 11.16 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.4217, allocations: 20.81 kB / 0.7743 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.4217, allocations: 24.36 kB / 0.7743 GB, free: 11.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005106/0.4222, allocations: 357.2 kB / 0.7746 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.4222, allocations: 0 / 0.7746 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.4223, allocations: 11.98 kB / 0.7747 GB, free: 10.74 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.343e-05/0.4223, allocations: 28.42 kB / 0.7747 GB, free: 10.71 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004406/0.4228, allocations: 289.5 kB / 0.775 GB, free: 10.43 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.4249, allocations: 1.73 MB / 0.7766 GB, free: 8.531 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004764/0.4253, allocations: 326.1 kB / 0.777 GB, free: 8.176 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.4255, allocations: 105.6 kB / 0.7771 GB, free: 8.066 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000106/0.4256, allocations: 89.09 kB / 0.7771 GB, free: 7.961 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.4257, allocations: 30.56 kB / 0.7772 GB, free: 7.922 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.4257, allocations: 4 kB / 0.7772 GB, free: 7.918 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002328/0.428, allocations: 0.9776 MB / 0.7781 GB, free: 6.906 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.4281, allocations: 81.05 kB / 0.7782 GB, free: 6.809 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.4283, allocations: 207.8 kB / 0.7784 GB, free: 6.594 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.4283, allocations: 29.73 kB / 0.7784 GB, free: 6.559 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.4284, allocations: 184.4 kB / 0.7786 GB, free: 6.375 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.801e-05/0.4285, allocations: 83.31 kB / 0.7787 GB, free: 6.293 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.949e-05/0.4286, allocations: 57.66 kB / 0.7787 GB, free: 6.23 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4288, allocations: 334.8 kB / 0.7791 GB, free: 5.895 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000194/0.429, allocations: 131.9 kB / 0.7792 GB, free: 5.766 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002522/0.4292, allocations: 205.4 kB / 0.7794 GB, free: 5.531 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004733/0.4297, allocations: 369.1 kB / 0.7797 GB, free: 5.137 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.4297, allocations: 0 / 0.7797 GB, free: 5.137 MB / 0.545 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008445/0.4306, allocations: 0.5114 MB / 0.7802 GB, free: 4.609 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.4306, allocations: 11.98 kB / 0.7803 GB, free: 4.598 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.4306, allocations: 96 / 0.7803 GB, free: 4.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005013/0.4311, allocations: 159.5 kB / 0.7804 GB, free: 4.43 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002476/0.4314, allocations: 55.91 kB / 0.7805 GB, free: 4.375 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00326/0.4346, allocations: 4.182 MB / 0.7845 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.4349, allocations: 23.92 kB / 0.7846 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.4349, allocations: 12 kB / 0.7846 GB, free: 15.82 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002139/0.4351, allocations: 170.4 kB / 0.7847 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.158e-05/0.4352, allocations: 27.84 kB / 0.7848 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008874/0.4361, allocations: 466.5 kB / 0.7852 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.401e-06/0.4361, allocations: 4 kB / 0.7852 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.4361, allocations: 11.98 kB / 0.7852 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.4361, allocations: 3.984 kB / 0.7852 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001625/0.4378, allocations: 0.9985 MB / 0.7862 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.4378, allocations: 4 kB / 0.7862 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.4379, allocations: 31.92 kB / 0.7862 GB, free: 14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003924/0.4383, allocations: 147.6 kB / 0.7864 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.4383, allocations: 11.94 kB / 0.7864 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003318/0.4417, allocations: 4.159 MB / 0.7905 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4417, allocations: 160 / 0.7905 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007929/0.4425, allocations: 0.621 MB / 0.7911 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.4426, allocations: 132.9 kB / 0.7912 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.4427, allocations: 8 kB / 0.7912 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.4429, allocations: 19.97 kB / 0.7912 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.443, allocations: 27.92 kB / 0.7912 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.443, allocations: 11.98 kB / 0.7912 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001505/0.4432, allocations: 158.1 kB / 0.7914 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.4432, allocations: 0 / 0.7914 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006252/0.4438, allocations: 91.88 kB / 0.7915 GB, free: 8.211 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 17 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001186/0.445, allocations: 1.209 MB / 0.7927 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009279/0.4459, allocations: 0.575 MB / 0.7932 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.446, allocations: 4 kB / 0.7932 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005372/0.4465, allocations: 406.3 kB / 0.7936 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006101/0.4471, allocations: 41.78 kB / 0.7937 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.4515, allocations: 3.327 MB / 0.7969 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.452, allocations: 0.7831 MB / 0.7977 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001669/0.4521, allocations: 62.25 kB / 0.7977 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.4523, allocations: 71.41 kB / 0.7978 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of SimCode: time 2.31e-07/0.4523, allocations: 0 / 0.7978 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.159/2.611, allocations: 6.714 MB / 0.8044 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/15.08, allocations: 7.75 kB / 0.8044 GB, free: 10.87 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)