Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.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.DC.Lines.Examples.RCModel,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel",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.005704/0.005704, allocations: 101.5 kB / 15.73 MB, free: 5.98 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.001155/0.001155, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.285/1.285, 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.002121/0.002121, allocations: 289.7 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9315/0.9315, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001815, allocations: 91.86 kB / 0.6809 GB, free: 7.445 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4196/0.4214, allocations: 86.97 MB / 0.7659 GB, free: 3.816 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.005477/0.4269, allocations: 4.343 MB / 0.7701 GB, free: 15.46 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002708/0.4297, allocations: 1.866 MB / 0.7719 GB, free: 13.58 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001963/0.4299, allocations: 8 kB / 0.772 GB, free: 13.57 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001571/0.4314, allocations: 0.5907 MB / 0.7725 GB, free: 12.98 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005499/0.432, allocations: 266.6 kB / 0.7728 GB, free: 12.72 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005786/0.4326, allocations: 259.3 kB / 0.773 GB, free: 12.47 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005537/0.4332, allocations: 0.611 MB / 0.7736 GB, free: 11.86 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006096/0.4338, allocations: 470.8 kB / 0.7741 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002671/0.4341, allocations: 247.1 kB / 0.7743 GB, free: 11.15 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003751/0.4344, allocations: 275 kB / 0.7746 GB, free: 10.88 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.582e-05/0.4345, allocations: 40 kB / 0.7746 GB, free: 10.84 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003771/0.4349, allocations: 251.5 kB / 0.7749 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.435, allocations: 151.5 kB / 0.775 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.4352, allocations: 215 kB / 0.7752 GB, free: 10.24 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005956/0.4358, allocations: 0.6074 MB / 0.7758 GB, free: 9.629 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.4359, allocations: 3.984 kB / 0.7758 GB, free: 9.625 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.062e-06/0.4359, allocations: 0 / 0.7758 GB, free: 9.625 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.08e-05/0.4359, allocations: 0 / 0.7758 GB, free: 9.625 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001087/0.437, allocations: 0.7213 MB / 0.7765 GB, free: 8.852 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.437, allocations: 8.031 kB / 0.7765 GB, free: 8.844 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.709e-05/0.4371, allocations: 78.7 kB / 0.7766 GB, free: 8.758 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009231/0.438, allocations: 156.2 kB / 0.7767 GB, free: 8.605 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004061/0.4384, allocations: 338.4 kB / 0.7771 GB, free: 8.238 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.4385, allocations: 25.38 kB / 0.7771 GB, free: 8.215 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.624e-05/0.4385, allocations: 36.38 kB / 0.7771 GB, free: 8.18 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006953/0.4392, allocations: 0.5355 MB / 0.7776 GB, free: 7.613 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.4393, allocations: 0 / 0.7776 GB, free: 7.613 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.249e-05/0.4393, allocations: 23.98 kB / 0.7777 GB, free: 7.59 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.393e-05/0.4394, allocations: 28.64 kB / 0.7777 GB, free: 7.562 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005533/0.4399, allocations: 394.2 kB / 0.7781 GB, free: 7.176 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00226/0.4422, allocations: 2.396 MB / 0.7804 GB, free: 4.559 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005134/0.4427, allocations: 261.2 kB / 0.7807 GB, free: 4.297 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.4429, allocations: 109.2 kB / 0.7808 GB, free: 4.188 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.4429, allocations: 4 kB / 0.7808 GB, free: 4.184 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.443, allocations: 42.52 kB / 0.7808 GB, free: 4.133 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.443, allocations: 0 / 0.7808 GB, free: 4.133 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002162/0.4451, allocations: 1.125 MB / 0.7819 GB, free: 2.91 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.4452, allocations: 55.41 kB / 0.782 GB, free: 2.844 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.4455, allocations: 296.5 kB / 0.7822 GB, free: 2.547 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.4455, allocations: 33.7 kB / 0.7823 GB, free: 2.508 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.4456, allocations: 227.5 kB / 0.7825 GB, free: 2.281 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.539e-05/0.4457, allocations: 86.83 kB / 0.7826 GB, free: 2.195 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.587e-05/0.4458, allocations: 61.94 kB / 0.7826 GB, free: 2.125 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.4459, allocations: 342.8 kB / 0.783 GB, free: 1.781 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.4461, allocations: 112.5 kB / 0.7831 GB, free: 1.672 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.4463, allocations: 183.8 kB / 0.7832 GB, free: 1.453 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.4467, allocations: 319.3 kB / 0.7835 GB, free: 1.109 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4467, allocations: 3.938 kB / 0.7835 GB, free: 1.105 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007073/0.4474, allocations: 437.9 kB / 0.784 GB, free: 0.6641 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.4475, allocations: 8 kB / 0.784 GB, free: 0.6562 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4475, allocations: 7.938 kB / 0.784 GB, free: 0.6484 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003571/0.4478, allocations: 102.7 kB / 0.7841 GB, free: 0.5391 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002705/0.4481, allocations: 59.91 kB / 0.7841 GB, free: 492 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003056/0.4512, allocations: 4.391 MB / 0.7884 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.4514, allocations: 15.98 kB / 0.7884 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.4514, allocations: 8 kB / 0.7884 GB, free: 11.64 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001856/0.4516, allocations: 186.5 kB / 0.7886 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.666e-05/0.4517, allocations: 27.66 kB / 0.7887 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.446e-05/0.4518, allocations: 42.31 kB / 0.7887 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.4518, allocations: 4 kB / 0.7887 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.4518, allocations: 0 / 0.7887 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.4518, allocations: 0 / 0.7887 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004227/0.4522, allocations: 397.4 kB / 0.7891 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.4522, allocations: 3.938 kB / 0.7891 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001866/0.4524, allocations: 35.97 kB / 0.7891 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002941/0.4527, allocations: 94.44 kB / 0.7892 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.4528, allocations: 8 kB / 0.7892 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00291/0.4557, allocations: 4.387 MB / 0.7935 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.4557, allocations: 3.938 kB / 0.7935 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007926/0.4565, allocations: 0.558 MB / 0.794 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.4566, allocations: 120.8 kB / 0.7942 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/0.4567, allocations: 4 kB / 0.7942 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.4569, allocations: 16.05 kB / 0.7942 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.93e-05/0.4569, allocations: 19.98 kB / 0.7942 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.457, allocations: 4 kB / 0.7942 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002011/0.4572, allocations: 215 kB / 0.7944 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4572, allocations: 4 kB / 0.7944 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000435/0.4576, allocations: 92 kB / 0.7945 GB, free: 4.914 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001011/0.4586, allocations: 1.098 MB / 0.7956 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007788/0.4594, allocations: 0.6053 MB / 0.7962 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4594, allocations: 0 / 0.7962 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004664/0.4599, allocations: 478.5 kB / 0.7966 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004522/0.4604, allocations: 86.91 kB / 0.7967 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003841/0.4642, allocations: 3.366 MB / 0.8 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.4646, allocations: 0.835 MB / 0.8008 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001734/0.4648, allocations: 62.92 kB / 0.8009 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.4649, allocations: 115.3 kB / 0.801 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of SimCode: time 3.61e-07/0.4649, allocations: 0 / 0.801 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03018/0.4951, allocations: 7.796 MB / 0.8086 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.965/10.46, allocations: 8.234 kB / 0.8086 GB, free: 6.367 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)