Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",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.000965/0.000965, allocations: 90.28 kB / 15.36 MB, free: 0.7383 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.00581/0.00581, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.3/1.3, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001692/0.001692, allocations: 266.8 kB / 291.7 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.032/1.032, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003902/0.0003902, allocations: 14.81 kB / 0.5988 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1414, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.003298/0.1448, allocations: 2.756 MB / 0.6879 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.1466, allocations: 1.29 MB / 0.6892 GB, free: 10.9 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.1468, allocations: 8.438 kB / 0.6892 GB, free: 10.89 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.1469, allocations: 44.52 kB / 0.6892 GB, free: 10.85 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003489/0.1473, allocations: 136 kB / 0.6894 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003135/0.1476, allocations: 124.8 kB / 0.6895 GB, free: 10.59 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004039/0.148, allocations: 439.4 kB / 0.6899 GB, free: 10.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003099/0.1483, allocations: 241.3 kB / 0.6901 GB, free: 9.922 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.1485, allocations: 92.33 kB / 0.6902 GB, free: 9.832 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002522/0.1487, allocations: 136.2 kB / 0.6903 GB, free: 9.699 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.1488, allocations: 8 kB / 0.6904 GB, free: 9.691 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000275/0.149, allocations: 205.4 kB / 0.6905 GB, free: 9.492 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.483e-05/0.1491, allocations: 71.8 kB / 0.6906 GB, free: 9.422 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.1492, allocations: 121.2 kB / 0.6907 GB, free: 9.297 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003473/0.1496, allocations: 334.8 kB / 0.6911 GB, free: 8.969 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1496, allocations: 0 / 0.6911 GB, free: 8.969 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1496, allocations: 4 kB / 0.6911 GB, free: 8.965 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.1496, allocations: 0 / 0.6911 GB, free: 8.965 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006755/0.1503, allocations: 491.1 kB / 0.6915 GB, free: 8.434 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1504, allocations: 12.03 kB / 0.6915 GB, free: 8.422 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.9e-05/0.1504, allocations: 54.73 kB / 0.6916 GB, free: 8.359 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005372/0.151, allocations: 84.58 kB / 0.6917 GB, free: 8.277 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.1512, allocations: 241.8 kB / 0.6919 GB, free: 8.004 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.1512, allocations: 20.73 kB / 0.6919 GB, free: 7.984 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.009e-05/0.1513, allocations: 20.31 kB / 0.6919 GB, free: 7.965 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000417/0.1517, allocations: 295.3 kB / 0.6922 GB, free: 7.656 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1517, allocations: 4 kB / 0.6922 GB, free: 7.652 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.1518, allocations: 8 kB / 0.6922 GB, free: 7.645 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.156e-05/0.1518, allocations: 20.36 kB / 0.6922 GB, free: 7.625 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002982/0.1521, allocations: 196.9 kB / 0.6924 GB, free: 7.434 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.1535, allocations: 1.468 MB / 0.6939 GB, free: 5.801 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.1537, allocations: 171.7 kB / 0.694 GB, free: 5.605 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.793e-05/0.1538, allocations: 36.84 kB / 0.6941 GB, free: 5.566 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.1538, allocations: 0 / 0.6941 GB, free: 5.566 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.1538, allocations: 34.56 kB / 0.6941 GB, free: 5.523 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.1538, allocations: 0 / 0.6941 GB, free: 5.523 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004354/0.1543, allocations: 231.7 kB / 0.6943 GB, free: 5.27 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.1543, allocations: 51.41 kB / 0.6944 GB, free: 5.207 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.1545, allocations: 204 kB / 0.6946 GB, free: 5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.1545, allocations: 25.7 kB / 0.6946 GB, free: 4.969 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.665e-05/0.1546, allocations: 167.6 kB / 0.6948 GB, free: 4.801 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.1547, allocations: 27.64 kB / 0.6948 GB, free: 4.773 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-05/0.1547, allocations: 17.72 kB / 0.6948 GB, free: 4.75 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.1548, allocations: 330.8 kB / 0.6951 GB, free: 4.418 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.824e-05/0.1549, allocations: 31.98 kB / 0.6951 GB, free: 4.387 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.665e-05/0.155, allocations: 108.5 kB / 0.6952 GB, free: 4.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.1551, allocations: 144.5 kB / 0.6954 GB, free: 4.078 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1551, allocations: 0 / 0.6954 GB, free: 4.078 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002857/0.1554, allocations: 194.3 kB / 0.6956 GB, free: 3.879 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1555, allocations: 4.094 kB / 0.6956 GB, free: 3.875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.1555, allocations: 15.94 kB / 0.6956 GB, free: 3.859 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001417/0.1556, allocations: 24.84 kB / 0.6956 GB, free: 3.832 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.91e-05/0.1557, allocations: 23.94 kB / 0.6956 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009012/0.1566, allocations: 1.323 MB / 0.6969 GB, free: 2.348 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.1568, allocations: 19.75 kB / 0.6969 GB, free: 2.328 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.1568, allocations: 8 kB / 0.697 GB, free: 2.32 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (17): * Single equations (assignments): 16 * 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.0001181/0.1569, allocations: 150.5 kB / 0.6971 GB, free: 2.164 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.912e-05/0.1569, allocations: 23.75 kB / 0.6971 GB, free: 2.141 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.157, allocations: 17.39 kB / 0.6971 GB, free: 2.125 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.157, allocations: 0 / 0.6971 GB, free: 2.125 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.157, allocations: 0 / 0.6971 GB, free: 2.125 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.157, allocations: 0 / 0.6971 GB, free: 2.125 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004569/0.1575, allocations: 447.2 kB / 0.6976 GB, free: 1.629 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1575, allocations: 0 / 0.6976 GB, free: 1.629 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.575e-05/0.1575, allocations: 8 kB / 0.6976 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.208e-05/0.1576, allocations: 28.88 kB / 0.6976 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.1576, allocations: 0 / 0.6976 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008167/0.1584, allocations: 1.319 MB / 0.6989 GB, free: 140 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1584, allocations: 0 / 0.6989 GB, free: 140 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002091/0.1587, allocations: 200.5 kB / 0.6991 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.494e-05/0.1587, allocations: 96.92 kB / 0.6992 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.1588, allocations: 3.938 kB / 0.6992 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.1589, allocations: 12.08 kB / 0.6992 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.262e-05/0.1589, allocations: 11.94 kB / 0.6992 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.1589, allocations: 0 / 0.6992 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001103/0.159, allocations: 143.2 kB / 0.6993 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.159, allocations: 0 / 0.6993 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003088/0.1594, allocations: 51.84 kB / 0.6994 GB, free: 15.59 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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.0004248/0.1598, allocations: 0.7451 MB / 0.7001 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003118/0.1601, allocations: 206.5 kB / 0.7003 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.1601, allocations: 4.562 kB / 0.7003 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.1603, allocations: 150.6 kB / 0.7005 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.1606, allocations: 32.11 kB / 0.7005 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.1626, allocations: 2.128 MB / 0.7026 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.1629, allocations: 0.7517 MB / 0.7033 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.534e-05/0.163, allocations: 25.92 kB / 0.7033 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.88e-05/0.1631, allocations: 51.42 kB / 0.7034 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.1631, allocations: 0 / 0.7034 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01255/0.1756, allocations: 3.41 MB / 0.7067 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.1758, allocations: 236.1 kB / 0.7069 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/1.877, allocations: 0 / 0.7069 GB, free: 7.797 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)