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.001114/0.001114, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002252/0.002253, allocations: 286.4 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9718/0.9718, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 92.92 kB / 0.5953 GB, free: 27.83 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.143, allocations: 86.98 MB / 0.6803 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004586/0.1476, allocations: 3.062 MB / 0.6833 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.1496, allocations: 1.332 MB / 0.6846 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.1498, allocations: 4 kB / 0.6846 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009702/0.1508, allocations: 334.7 kB / 0.6849 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003459/0.1511, allocations: 139.3 kB / 0.685 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000358/0.1515, allocations: 127.6 kB / 0.6852 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003594/0.1519, allocations: 306.9 kB / 0.6855 GB, free: 11.33 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003983/0.1523, allocations: 244.2 kB / 0.6857 GB, free: 11.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.1525, allocations: 127.6 kB / 0.6858 GB, free: 10.97 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002718/0.1527, allocations: 139.5 kB / 0.6859 GB, free: 10.83 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.1528, allocations: 20 kB / 0.686 GB, free: 10.81 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002992/0.1531, allocations: 167.6 kB / 0.6861 GB, free: 10.65 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.735e-05/0.1532, allocations: 75.78 kB / 0.6862 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.1533, allocations: 111.5 kB / 0.6863 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004034/0.1537, allocations: 331 kB / 0.6866 GB, free: 10.14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1537, allocations: 3.984 kB / 0.6866 GB, free: 10.14 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1538, allocations: 4 kB / 0.6866 GB, free: 10.13 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.1538, allocations: 4 kB / 0.6866 GB, free: 10.13 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.0007683/0.1545, allocations: 0.5069 MB / 0.6871 GB, free: 9.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.1546, allocations: 8.031 kB / 0.6871 GB, free: 9.562 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.896e-05/0.1546, allocations: 54.73 kB / 0.6872 GB, free: 9.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005682/0.1552, allocations: 80.58 kB / 0.6873 GB, free: 9.422 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.1555, allocations: 251.8 kB / 0.6875 GB, free: 9.137 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.1555, allocations: 16.75 kB / 0.6875 GB, free: 9.121 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.1556, allocations: 16.38 kB / 0.6875 GB, free: 9.105 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004107/0.156, allocations: 299.4 kB / 0.6878 GB, free: 8.793 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.156, allocations: 3.938 kB / 0.6878 GB, free: 8.789 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.156, allocations: 8 kB / 0.6878 GB, free: 8.781 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.459e-05/0.1561, allocations: 24.36 kB / 0.6878 GB, free: 8.758 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002948/0.1564, allocations: 193 kB / 0.688 GB, free: 8.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.1578, allocations: 1.46 MB / 0.6895 GB, free: 6.945 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.158, allocations: 175.7 kB / 0.6896 GB, free: 6.746 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.699e-05/0.1581, allocations: 36.84 kB / 0.6897 GB, free: 6.707 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-06/0.1581, allocations: 0 / 0.6897 GB, free: 6.707 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.1581, allocations: 38.5 kB / 0.6897 GB, free: 6.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 9.21e-07/0.1581, allocations: 0 / 0.6897 GB, free: 6.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004441/0.1586, allocations: 223.4 kB / 0.6899 GB, free: 6.414 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.1586, allocations: 51.41 kB / 0.69 GB, free: 6.352 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.1588, allocations: 200.1 kB / 0.6902 GB, free: 6.148 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.1588, allocations: 25.7 kB / 0.6902 GB, free: 6.117 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.736e-05/0.1589, allocations: 167.5 kB / 0.6903 GB, free: 5.949 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.159, allocations: 31.58 kB / 0.6904 GB, free: 5.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.159e-05/0.159, allocations: 33.72 kB / 0.6904 GB, free: 5.879 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.592e-05/0.1591, allocations: 338.7 kB / 0.6907 GB, free: 5.539 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.187e-05/0.1592, allocations: 35.98 kB / 0.6908 GB, free: 5.504 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.106e-05/0.1593, allocations: 94.28 kB / 0.6908 GB, free: 5.383 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.1595, allocations: 152.5 kB / 0.691 GB, free: 5.203 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1595, allocations: 0 / 0.691 GB, free: 5.203 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003077/0.1598, allocations: 190.1 kB / 0.6912 GB, free: 5.008 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.1598, allocations: 7.984 kB / 0.6912 GB, free: 5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.1598, allocations: 4.281 kB / 0.6912 GB, free: 4.996 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001553/0.16, allocations: 32.78 kB / 0.6912 GB, free: 4.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.1601, allocations: 20 kB / 0.6912 GB, free: 4.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009818/0.1611, allocations: 1.426 MB / 0.6926 GB, free: 3.371 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.1612, allocations: 19.78 kB / 0.6926 GB, free: 3.352 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.1612, allocations: 8 kB / 0.6927 GB, free: 3.344 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.0001173/0.1614, allocations: 154.5 kB / 0.6928 GB, free: 3.184 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.722e-05/0.1614, allocations: 11.81 kB / 0.6928 GB, free: 3.172 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.274e-05/0.1614, allocations: 21.39 kB / 0.6928 GB, free: 3.152 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.1614, allocations: 4 kB / 0.6928 GB, free: 3.148 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.1615, allocations: 0 / 0.6928 GB, free: 3.148 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1615, allocations: 0 / 0.6928 GB, free: 3.148 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004562/0.1619, allocations: 443.2 kB / 0.6933 GB, free: 2.656 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1619, allocations: 0 / 0.6933 GB, free: 2.656 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.649e-05/0.162, allocations: 12.06 kB / 0.6933 GB, free: 2.645 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.45e-05/0.1621, allocations: 24.84 kB / 0.6933 GB, free: 2.617 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.1621, allocations: 0 / 0.6933 GB, free: 2.617 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000865/0.1629, allocations: 1.414 MB / 0.6947 GB, free: 1.062 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.163, allocations: 0 / 0.6947 GB, free: 1.062 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002047/0.1632, allocations: 224.2 kB / 0.6949 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-05/0.1632, allocations: 100.8 kB / 0.695 GB, free: 0.707 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.1633, allocations: 0 / 0.695 GB, free: 0.707 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.1634, allocations: 8 kB / 0.695 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.953e-05/0.1634, allocations: 4 kB / 0.695 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.1634, allocations: 96 / 0.695 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001107/0.1635, allocations: 148.4 kB / 0.6951 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.393e-06/0.1635, allocations: 0 / 0.6951 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000318/0.1639, allocations: 59.78 kB / 0.6952 GB, free: 0.4922 MB / 494.1 MB 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.0004515/0.1643, allocations: 0.7448 MB / 0.6959 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003325/0.1647, allocations: 214.6 kB / 0.6961 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1647, allocations: 0 / 0.6961 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.1648, allocations: 150.7 kB / 0.6963 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.1652, allocations: 36.2 kB / 0.6963 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.1672, allocations: 2.04 MB / 0.6983 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.1675, allocations: 0.7436 MB / 0.699 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.396e-05/0.1676, allocations: 25.53 kB / 0.699 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.182e-05/0.1676, allocations: 55.42 kB / 0.6991 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1676, allocations: 0 / 0.6991 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0226/0.1903, allocations: 3.659 MB / 0.7027 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.54/8.73, allocations: 10.5 kB / 0.7027 GB, free: 8.742 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)