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.005449/0.005449, allocations: 101.4 kB / 15.73 MB, free: 6.008 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.001232/0.001232, allocations: 188.3 kB / 16.67 MB, free: 5.93 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.307/1.307, 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.002115/0.002115, allocations: 285.3 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9441/0.9441, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 96.22 kB / 0.6809 GB, free: 7.469 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3986/0.4004, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004573/0.4051, allocations: 3.058 MB / 0.7689 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00289/0.408, allocations: 1.905 MB / 0.7707 GB, free: 14.85 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.4082, allocations: 8 kB / 0.7707 GB, free: 14.84 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000906/0.4091, allocations: 274.9 kB / 0.771 GB, free: 14.57 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.000519/0.4096, allocations: 203.1 kB / 0.7712 GB, free: 14.37 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.4103, allocations: 243.2 kB / 0.7714 GB, free: 14.13 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000391/0.4107, allocations: 322.7 kB / 0.7717 GB, free: 13.82 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003279/0.411, allocations: 185 kB / 0.7719 GB, free: 13.63 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001979/0.4112, allocations: 135.5 kB / 0.772 GB, free: 13.5 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002879/0.4115, allocations: 143.5 kB / 0.7722 GB, free: 13.36 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.633e-05/0.4116, allocations: 20 kB / 0.7722 GB, free: 13.34 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006018/0.4122, allocations: 403.2 kB / 0.7726 GB, free: 12.94 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.608e-05/0.4123, allocations: 87.72 kB / 0.7727 GB, free: 12.86 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.4124, allocations: 115.5 kB / 0.7728 GB, free: 12.74 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006377/0.4131, allocations: 498.5 kB / 0.7733 GB, free: 12.25 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4131, allocations: 4 kB / 0.7733 GB, free: 12.25 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.252e-06/0.4131, allocations: 0 / 0.7733 GB, free: 12.25 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.135e-06/0.4131, allocations: 0 / 0.7733 GB, free: 12.25 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.0008556/0.414, allocations: 0.5536 MB / 0.7738 GB, free: 11.65 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.414, allocations: 15.97 kB / 0.7738 GB, free: 11.63 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.772e-05/0.4141, allocations: 62.66 kB / 0.7739 GB, free: 11.56 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008015/0.4149, allocations: 108.5 kB / 0.774 GB, free: 11.46 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/0.4152, allocations: 278.8 kB / 0.7742 GB, free: 11.15 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.4152, allocations: 12.81 kB / 0.7743 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.035e-05/0.4153, allocations: 24.36 kB / 0.7743 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004968/0.4158, allocations: 357.2 kB / 0.7746 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.4158, allocations: 4 kB / 0.7746 GB, free: 10.74 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/0.4158, allocations: 7.984 kB / 0.7746 GB, free: 10.73 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.451e-05/0.4159, allocations: 24.42 kB / 0.7747 GB, free: 10.71 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004526/0.4164, allocations: 297.5 kB / 0.7749 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.4183, allocations: 1.729 MB / 0.7766 GB, free: 8.52 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004638/0.4188, allocations: 318.1 kB / 0.7769 GB, free: 8.172 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.419, allocations: 113.6 kB / 0.777 GB, free: 8.055 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.4191, allocations: 85.11 kB / 0.7771 GB, free: 7.953 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.4191, allocations: 34.56 kB / 0.7772 GB, free: 7.91 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.4191, allocations: 0 / 0.7772 GB, free: 7.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002434/0.4216, allocations: 0.973 MB / 0.7781 GB, free: 6.902 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.4216, allocations: 89.08 kB / 0.7782 GB, free: 6.797 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002116/0.4219, allocations: 203.9 kB / 0.7784 GB, free: 6.586 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.4219, allocations: 29.7 kB / 0.7784 GB, free: 6.551 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.08e-05/0.422, allocations: 172.1 kB / 0.7786 GB, free: 6.379 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.437e-05/0.4221, allocations: 82.83 kB / 0.7787 GB, free: 6.297 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.835e-05/0.4222, allocations: 61.61 kB / 0.7787 GB, free: 6.23 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.702e-05/0.4223, allocations: 326.8 kB / 0.779 GB, free: 5.902 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.4225, allocations: 131.9 kB / 0.7792 GB, free: 5.773 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.4227, allocations: 217.3 kB / 0.7794 GB, free: 5.527 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004346/0.4231, allocations: 357.2 kB / 0.7797 GB, free: 5.145 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4232, allocations: 8 kB / 0.7797 GB, free: 5.137 MB / 0.545 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008255/0.424, allocations: 0.5112 MB / 0.7802 GB, free: 4.609 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.424, allocations: 4 kB / 0.7802 GB, free: 4.605 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.046e-06/0.424, allocations: 8.312 kB / 0.7802 GB, free: 4.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005167/0.4246, allocations: 143.3 kB / 0.7804 GB, free: 4.445 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002477/0.4248, allocations: 63.89 kB / 0.7804 GB, free: 4.383 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002834/0.4277, allocations: 4.19 MB / 0.7845 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.4279, allocations: 19.98 kB / 0.7845 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.4279, allocations: 11.98 kB / 0.7845 GB, free: 15.83 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.000161/0.4281, allocations: 170.5 kB / 0.7847 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.789e-05/0.4281, allocations: 15.81 kB / 0.7847 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008182/0.429, allocations: 486.4 kB / 0.7852 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.429, allocations: 4 kB / 0.7852 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.429, allocations: 0 / 0.7852 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.429, allocations: 0 / 0.7852 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.4305, allocations: 1.006 MB / 0.7862 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.4305, allocations: 4 kB / 0.7862 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.4306, allocations: 27.98 kB / 0.7862 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003898/0.431, allocations: 151.5 kB / 0.7863 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.4311, allocations: 8 kB / 0.7863 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00277/0.4339, allocations: 4.159 MB / 0.7904 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.4339, allocations: 7.969 kB / 0.7904 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007624/0.4346, allocations: 0.6129 MB / 0.791 GB, free: 8.676 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.4348, allocations: 128.7 kB / 0.7911 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.254e-05/0.4348, allocations: 12 kB / 0.7912 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.435, allocations: 15.98 kB / 0.7912 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.267e-05/0.4351, allocations: 23.91 kB / 0.7912 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.4351, allocations: 12 kB / 0.7912 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001562/0.4353, allocations: 166.1 kB / 0.7914 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4353, allocations: 0 / 0.7914 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005083/0.4358, allocations: 88 kB / 0.7914 GB, free: 8.223 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.001187/0.437, allocations: 1.213 MB / 0.7926 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009057/0.4379, allocations: 0.5752 MB / 0.7932 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.4379, allocations: 0.625 kB / 0.7932 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004918/0.4384, allocations: 401.1 kB / 0.7936 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004981/0.439, allocations: 48.8 kB / 0.7936 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004006/0.443, allocations: 3.314 MB / 0.7969 GB, free: 2.359 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.4434, allocations: 0.7831 MB / 0.7976 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001705/0.4435, allocations: 66.23 kB / 0.7977 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.4437, allocations: 71.41 kB / 0.7978 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of SimCode: time 3.01e-07/0.4437, allocations: 0 / 0.7978 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02868/0.4724, allocations: 6.715 MB / 0.8043 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.73, allocations: 11.69 kB / 0.8043 GB, free: 10.89 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)