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.001365/0.001364, 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.001351/0.001351, allocations: 197.4 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.496/1.496, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002459/0.002459, allocations: 290.6 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.089/1.089, allocations: 178.6 MB / 0.5073 GB, free: 4.586 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002719/0.00272, allocations: 96.27 kB / 0.6065 GB, free: 24.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1695, allocations: 89.15 MB / 0.6936 GB, free: 4.246 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005763/0.1753, allocations: 3.82 MB / 0.6973 GB, free: 428 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002775/0.1781, allocations: 1.732 MB / 0.699 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.1782, allocations: 11.94 kB / 0.699 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.1796, allocations: 499.2 kB / 0.6995 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004498/0.18, allocations: 218.9 kB / 0.6997 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004776/0.1805, allocations: 215.5 kB / 0.6999 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005218/0.1811, allocations: 470.4 kB / 0.7004 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005723/0.1816, allocations: 365.1 kB / 0.7007 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002236/0.1819, allocations: 195.4 kB / 0.7009 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003642/0.1823, allocations: 215.2 kB / 0.7011 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.893e-05/0.1823, allocations: 28 kB / 0.7011 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000419/0.1827, allocations: 243.4 kB / 0.7014 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001453/0.1829, allocations: 131.7 kB / 0.7015 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001844/0.1831, allocations: 163.2 kB / 0.7017 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006081/0.1837, allocations: 0.5023 MB / 0.7021 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1837, allocations: 3.984 kB / 0.7021 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.232e-06/0.1837, allocations: 0 / 0.7021 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.122e-05/0.1837, allocations: 0 / 0.7021 GB, free: 11.48 MB / 0.4981 GB 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.001166/0.1849, allocations: 0.6277 MB / 0.7028 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/0.185, allocations: 8.031 kB / 0.7028 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.344e-05/0.1851, allocations: 70.7 kB / 0.7028 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009574/0.186, allocations: 144.3 kB / 0.703 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004507/0.1865, allocations: 280.2 kB / 0.7032 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.1865, allocations: 25.02 kB / 0.7033 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-05/0.1866, allocations: 24.38 kB / 0.7033 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007301/0.1873, allocations: 467.7 kB / 0.7037 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.1874, allocations: 3.938 kB / 0.7037 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/0.1874, allocations: 16 kB / 0.7038 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.133e-05/0.1875, allocations: 32.53 kB / 0.7038 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005192/0.188, allocations: 318 kB / 0.7041 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002299/0.1903, allocations: 2.189 MB / 0.7062 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003922/0.1907, allocations: 247.8 kB / 0.7065 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.191, allocations: 108.8 kB / 0.7066 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.191, allocations: 8 kB / 0.7066 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.191, allocations: 30.56 kB / 0.7066 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.191, allocations: 0 / 0.7066 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0006043/0.1916, allocations: 309.1 kB / 0.7069 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.1917, allocations: 51.41 kB / 0.7069 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002911/0.192, allocations: 270.5 kB / 0.7072 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.192, allocations: 33.7 kB / 0.7072 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.1922, allocations: 203.8 kB / 0.7074 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.053e-05/0.1922, allocations: 47.36 kB / 0.7075 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-05/0.1923, allocations: 49.84 kB / 0.7075 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1924, allocations: 338.8 kB / 0.7078 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.1926, allocations: 56.44 kB / 0.7079 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.1927, allocations: 146.6 kB / 0.708 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.193, allocations: 232.5 kB / 0.7083 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.193, allocations: 0 / 0.7083 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004253/0.1935, allocations: 254 kB / 0.7085 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.1935, allocations: 11.98 kB / 0.7085 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1935, allocations: 384 / 0.7085 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001568/0.1937, allocations: 28.84 kB / 0.7085 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.1939, allocations: 51.98 kB / 0.7086 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001189/0.1951, allocations: 1.422 MB / 0.71 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.1952, allocations: 27.69 kB / 0.71 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.1953, allocations: 8 kB / 0.71 GB, free: 2.742 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.0001767/0.1955, allocations: 178.4 kB / 0.7102 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.064e-05/0.1955, allocations: 23.72 kB / 0.7102 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.268e-05/0.1956, allocations: 25.92 kB / 0.7102 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.1956, allocations: 11.88 kB / 0.7102 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1956, allocations: 0 / 0.7102 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1956, allocations: 3.984 kB / 0.7102 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009267/0.1965, allocations: 0.7024 MB / 0.7109 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.1965, allocations: 0 / 0.7109 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.234e-05/0.1966, allocations: 27.92 kB / 0.711 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.407e-05/0.1967, allocations: 32.97 kB / 0.711 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.1968, allocations: 8 kB / 0.711 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.1979, allocations: 1.406 MB / 0.7124 GB, free: 88 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1979, allocations: 0 / 0.7124 GB, free: 88 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000387/0.1983, allocations: 309.9 kB / 0.7127 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.1984, allocations: 124.7 kB / 0.7128 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.1984, allocations: 4 kB / 0.7128 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.1986, allocations: 12 kB / 0.7128 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.592e-05/0.1986, allocations: 19.86 kB / 0.7128 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.1987, allocations: 12 kB / 0.7128 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001986/0.1989, allocations: 190 kB / 0.713 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1989, allocations: 0 / 0.713 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004075/0.1993, allocations: 75.75 kB / 0.7131 GB, free: 15.3 MB / 0.5137 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.0006747/0.2, allocations: 0.8613 MB / 0.7139 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004855/0.2005, allocations: 278.4 kB / 0.7142 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2005, allocations: 0 / 0.7142 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00022/0.2007, allocations: 179.4 kB / 0.7144 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005017/0.2012, allocations: 67.5 kB / 0.7144 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003229/0.2045, allocations: 2.728 MB / 0.7171 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.2049, allocations: 0.7909 MB / 0.7179 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001627/0.2051, allocations: 46.25 kB / 0.7179 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2052, allocations: 83.41 kB / 0.718 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of SimCode: time 4.11e-07/0.2052, allocations: 0 / 0.718 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03172/0.237, allocations: 5.298 MB / 0.7232 GB, free: 4.84 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.443/9.68, allocations: 4.562 kB / 0.7232 GB, free: 4.836 MB / 0.5137 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor_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_Loads_Examples_Resistor.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)