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.004934/0.004935, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001309/0.001309, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002551/0.002551, allocations: 286.5 kB / 290.8 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.064/1.064, allocations: 178.6 MB / 0.5074 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002727/0.002727, allocations: 95.84 kB / 0.6943 GB, free: 3.594 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4597/0.4624, allocations: 89.14 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005686/0.4681, allocations: 3.833 MB / 0.7851 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002901/0.4711, allocations: 1.728 MB / 0.7867 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.4712, allocations: 10.06 kB / 0.7868 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.4727, allocations: 489.1 kB / 0.7872 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005153/0.4732, allocations: 221.6 kB / 0.7874 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000564/0.4738, allocations: 212.7 kB / 0.7876 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005333/0.4743, allocations: 475.3 kB / 0.7881 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005919/0.4749, allocations: 368.2 kB / 0.7884 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.4752, allocations: 192.6 kB / 0.7886 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004031/0.4756, allocations: 219.9 kB / 0.7888 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.439e-05/0.4756, allocations: 28.09 kB / 0.7889 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000537/0.4762, allocations: 244.9 kB / 0.7891 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.4764, allocations: 128 kB / 0.7892 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002587/0.4767, allocations: 175 kB / 0.7894 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008096/0.4775, allocations: 0.5012 MB / 0.7899 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.4775, allocations: 4.797 kB / 0.7899 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.894e-06/0.4775, allocations: 0 / 0.7899 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.372e-05/0.4775, allocations: 0 / 0.7899 GB, free: 8.57 MB / 0.5606 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.001075/0.4786, allocations: 0.6364 MB / 0.7905 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.4786, allocations: 9.938 kB / 0.7905 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.192e-05/0.4787, allocations: 70.7 kB / 0.7906 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009045/0.4796, allocations: 133.5 kB / 0.7907 GB, free: 7.965 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.4801, allocations: 300.1 kB / 0.791 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.4801, allocations: 24.78 kB / 0.791 GB, free: 7.691 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.587e-05/0.4801, allocations: 26.69 kB / 0.791 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007059/0.4809, allocations: 472.9 kB / 0.7915 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.4809, allocations: 5.281 kB / 0.7915 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.986e-05/0.4809, allocations: 15.86 kB / 0.7915 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.493e-05/0.481, allocations: 30.77 kB / 0.7915 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000523/0.4815, allocations: 322.2 kB / 0.7918 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.4839, allocations: 2.183 MB / 0.794 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003985/0.4843, allocations: 251 kB / 0.7942 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.4845, allocations: 105.2 kB / 0.7943 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.4845, allocations: 1.656 kB / 0.7943 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.4846, allocations: 37.08 kB / 0.7944 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.4846, allocations: 1.719 kB / 0.7944 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0005991/0.4852, allocations: 305.2 kB / 0.7946 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.4852, allocations: 53.62 kB / 0.7947 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.4855, allocations: 272 kB / 0.795 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.4856, allocations: 27.08 kB / 0.795 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.4857, allocations: 204.7 kB / 0.7952 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.858e-05/0.4858, allocations: 60.17 kB / 0.7952 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.981e-05/0.4859, allocations: 49.67 kB / 0.7953 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.486, allocations: 339.9 kB / 0.7956 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.4861, allocations: 62.45 kB / 0.7957 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.4863, allocations: 137.5 kB / 0.7958 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002896/0.4866, allocations: 220.5 kB / 0.796 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4866, allocations: 1.188 kB / 0.796 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004449/0.4871, allocations: 268.2 kB / 0.7963 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.4871, allocations: 9.219 kB / 0.7963 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.4871, allocations: 2.281 kB / 0.7963 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001653/0.4873, allocations: 27.66 kB / 0.7963 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.4875, allocations: 47.03 kB / 0.7963 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.4887, allocations: 1.428 MB / 0.7977 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.4889, allocations: 32.66 kB / 0.7978 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.4889, allocations: 8.656 kB / 0.7978 GB, free: 2.168 MB / 0.5606 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.0001805/0.4891, allocations: 169.4 kB / 0.7979 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.033e-05/0.4891, allocations: 24.14 kB / 0.798 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.975e-05/0.4892, allocations: 27.77 kB / 0.798 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.4892, allocations: 2.188 kB / 0.798 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.4892, allocations: 0.7031 kB / 0.798 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.4892, allocations: 1.594 kB / 0.798 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.4902, allocations: 0.7033 MB / 0.7987 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.4903, allocations: 5.281 kB / 0.7987 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.951e-05/0.4904, allocations: 29.91 kB / 0.7987 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.827e-05/0.4904, allocations: 29.09 kB / 0.7987 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.4905, allocations: 6.781 kB / 0.7988 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.4916, allocations: 1.414 MB / 0.8001 GB, free: 4 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4916, allocations: 2.281 kB / 0.8001 GB, free: 4 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003697/0.492, allocations: 315.3 kB / 0.8004 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.4921, allocations: 114.5 kB / 0.8005 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.077e-05/0.4922, allocations: 4.125 kB / 0.8005 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.4923, allocations: 15.66 kB / 0.8006 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.4924, allocations: 18.5 kB / 0.8006 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.4924, allocations: 8.75 kB / 0.8006 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000209/0.4926, allocations: 192.4 kB / 0.8008 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4926, allocations: 1.062 kB / 0.8008 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003928/0.493, allocations: 75.56 kB / 0.8008 GB, free: 15.48 MB / 0.5762 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.0006689/0.4937, allocations: 0.8575 MB / 0.8017 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004634/0.4942, allocations: 274.3 kB / 0.8019 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.4942, allocations: 0 / 0.8019 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002279/0.4944, allocations: 186.5 kB / 0.8021 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004848/0.4949, allocations: 65.95 kB / 0.8022 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.4981, allocations: 2.723 MB / 0.8048 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004364/0.4985, allocations: 0.7922 MB / 0.8056 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001461/0.4987, allocations: 44.53 kB / 0.8057 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.4988, allocations: 83.75 kB / 0.8057 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of SimCode: time 3.41e-07/0.4988, allocations: 0 / 0.8057 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0314/0.5302, allocations: 5.405 MB / 0.811 GB, free: 8.605 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.522/10.05, allocations: 12.56 kB / 0.811 GB, free: 8.598 MB / 0.5762 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)