Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor",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.001056/0.001056, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001161/0.001161, allocations: 196.7 kB / 16.14 MB, free: 6.715 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.242/1.242, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001897/0.001897, allocations: 276.2 kB / 290.2 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8828/0.8828, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 93.98 kB / 0.5946 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1314, allocations: 86.98 MB / 0.6795 GB, free: 1.047 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.00471/0.1361, allocations: 3.859 MB / 0.6833 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.1384, allocations: 1.74 MB / 0.685 GB, free: 11.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.1386, allocations: 4 kB / 0.685 GB, free: 11.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.1397, allocations: 481.3 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003778/0.1401, allocations: 211.1 kB / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.1405, allocations: 191.6 kB / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005085/0.1411, allocations: 0.6622 MB / 0.6865 GB, free: 9.902 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003285/0.1414, allocations: 229.2 kB / 0.6867 GB, free: 9.68 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.1416, allocations: 171.3 kB / 0.6869 GB, free: 9.512 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000306/0.1419, allocations: 223.2 kB / 0.6871 GB, free: 9.293 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.235e-05/0.1419, allocations: 24 kB / 0.6871 GB, free: 9.27 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004053/0.1423, allocations: 311.3 kB / 0.6874 GB, free: 8.965 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.1425, allocations: 115.7 kB / 0.6875 GB, free: 8.852 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.1426, allocations: 163.1 kB / 0.6877 GB, free: 8.691 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004838/0.1431, allocations: 0.4984 MB / 0.6882 GB, free: 8.191 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1431, allocations: 0 / 0.6882 GB, free: 8.191 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1431, allocations: 0 / 0.6882 GB, free: 8.191 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.371e-06/0.1431, allocations: 0 / 0.6882 GB, free: 8.191 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0008445/0.144, allocations: 0.6355 MB / 0.6888 GB, free: 7.508 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.144, allocations: 12.03 kB / 0.6888 GB, free: 7.496 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.074e-05/0.1441, allocations: 78.64 kB / 0.6889 GB, free: 7.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008591/0.145, allocations: 128.4 kB / 0.689 GB, free: 7.285 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.1453, allocations: 283.7 kB / 0.6893 GB, free: 6.969 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.1453, allocations: 25.02 kB / 0.6893 GB, free: 6.945 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.1454, allocations: 32.38 kB / 0.6893 GB, free: 6.914 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005907/0.146, allocations: 455.7 kB / 0.6898 GB, free: 6.43 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.146, allocations: 7.984 kB / 0.6898 GB, free: 6.422 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.43e-05/0.146, allocations: 16 kB / 0.6898 GB, free: 6.406 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.341e-05/0.1461, allocations: 28.55 kB / 0.6898 GB, free: 6.379 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004476/0.1465, allocations: 321.9 kB / 0.6901 GB, free: 6.066 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.1484, allocations: 2.181 MB / 0.6922 GB, free: 3.672 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.1487, allocations: 259.7 kB / 0.6925 GB, free: 3.391 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.149, allocations: 108.8 kB / 0.6926 GB, free: 3.281 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-06/0.149, allocations: 0 / 0.6926 GB, free: 3.281 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.149, allocations: 42.55 kB / 0.6926 GB, free: 3.23 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.052e-06/0.149, allocations: 0 / 0.6926 GB, free: 3.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005274/0.1496, allocations: 295.6 kB / 0.6929 GB, free: 2.914 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.404e-05/0.1496, allocations: 63.28 kB / 0.693 GB, free: 2.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002397/0.1498, allocations: 274.5 kB / 0.6932 GB, free: 2.57 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.1499, allocations: 29.7 kB / 0.6933 GB, free: 2.535 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.15, allocations: 195.9 kB / 0.6935 GB, free: 2.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.483e-05/0.15, allocations: 55.2 kB / 0.6935 GB, free: 2.285 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.674e-05/0.1501, allocations: 45.94 kB / 0.6936 GB, free: 2.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1502, allocations: 338.8 kB / 0.6939 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.163e-05/0.1503, allocations: 56.5 kB / 0.6939 GB, free: 1.836 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.1504, allocations: 145.7 kB / 0.6941 GB, free: 1.656 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002405/0.1507, allocations: 221.3 kB / 0.6943 GB, free: 1.402 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1507, allocations: 0 / 0.6943 GB, free: 1.402 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000393/0.1511, allocations: 270 kB / 0.6945 GB, free: 1.129 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.1511, allocations: 8 kB / 0.6945 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.1511, allocations: 4 kB / 0.6945 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001361/0.1513, allocations: 24.84 kB / 0.6946 GB, free: 1.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.1515, allocations: 47.92 kB / 0.6946 GB, free: 1.043 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008965/0.1524, allocations: 1.319 MB / 0.6959 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.1525, allocations: 27.69 kB / 0.6959 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.1526, allocations: 8 kB / 0.6959 GB, free: 15.55 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.1527, allocations: 170.5 kB / 0.6961 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.048e-05/0.1528, allocations: 31.66 kB / 0.6961 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.77e-05/0.1528, allocations: 29.83 kB / 0.6962 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1528, allocations: 0 / 0.6962 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1528, allocations: 4 kB / 0.6962 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1528, allocations: 0 / 0.6962 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000785/0.1536, allocations: 0.7025 MB / 0.6969 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1536, allocations: 0 / 0.6969 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.408e-05/0.1537, allocations: 20 kB / 0.6969 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-05/0.1538, allocations: 29.03 kB / 0.6969 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.1538, allocations: 3.984 kB / 0.6969 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008035/0.1546, allocations: 1.319 MB / 0.6982 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1546, allocations: 4.031 kB / 0.6982 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000305/0.155, allocations: 321.1 kB / 0.6985 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.574e-05/0.1551, allocations: 116.8 kB / 0.6986 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.015e-05/0.1551, allocations: 4.094 kB / 0.6986 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.1553, allocations: 23.86 kB / 0.6986 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.394e-05/0.1553, allocations: 7.938 kB / 0.6986 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.1553, allocations: 11.98 kB / 0.6987 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001649/0.1555, allocations: 197.9 kB / 0.6988 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1555, allocations: 0 / 0.6988 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003625/0.1558, allocations: 71.84 kB / 0.6989 GB, free: 12.21 MB / 0.4981 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0005262/0.1564, allocations: 0.8565 MB / 0.6998 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003782/0.1568, allocations: 258.8 kB / 0.7 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1568, allocations: 3.938 kB / 0.7 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001938/0.157, allocations: 190.5 kB / 0.7002 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.1574, allocations: 63.36 kB / 0.7002 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.1602, allocations: 2.831 MB / 0.703 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.1605, allocations: 0.7985 MB / 0.7038 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001386/0.1606, allocations: 42.25 kB / 0.7038 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.1607, allocations: 83.42 kB / 0.7039 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of SimCode: time 3.91e-07/0.1607, allocations: 0 / 0.7039 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01528/0.176, allocations: 5.09 MB / 0.7089 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001669/0.1762, allocations: 222.3 kB / 0.7091 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/1.864, allocations: 7.938 kB / 0.7091 GB, free: 1.641 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)