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.005296/0.005295, 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.001111/0.001111, allocations: 195.7 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002059/0.002059, allocations: 293.7 kB / 290.8 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 0.9491/0.9491, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 100.1 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1538, allocations: 86.96 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005313/0.1592, allocations: 3.825 MB / 0.7696 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00265/0.1618, allocations: 1.737 MB / 0.7713 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.1621, allocations: 11.94 kB / 0.7713 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.1635, allocations: 495.9 kB / 0.7718 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005914/0.1642, allocations: 226.9 kB / 0.772 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005888/0.1648, allocations: 211.4 kB / 0.7722 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005776/0.1653, allocations: 478.2 kB / 0.7727 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005996/0.166, allocations: 365 kB / 0.773 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002736/0.1662, allocations: 191.4 kB / 0.7732 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003973/0.1666, allocations: 227.1 kB / 0.7734 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.923e-05/0.1667, allocations: 28 kB / 0.7734 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004373/0.1672, allocations: 247.5 kB / 0.7737 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.1673, allocations: 119.6 kB / 0.7738 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.1675, allocations: 171.2 kB / 0.774 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006263/0.1681, allocations: 0.5059 MB / 0.7745 GB, free: 144 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1681, allocations: 3.984 kB / 0.7745 GB, free: 140 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.102e-06/0.1681, allocations: 0 / 0.7745 GB, free: 140 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.011e-05/0.1682, allocations: 0 / 0.7745 GB, free: 140 kB / 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.2972/0.4654, allocations: 0.6319 MB / 0.7751 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.4655, allocations: 11.67 kB / 0.7751 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.211e-05/0.4656, allocations: 67.69 kB / 0.7751 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009981/0.4666, allocations: 137.4 kB / 0.7753 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004437/0.467, allocations: 293.5 kB / 0.7756 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.968e-05/0.4671, allocations: 20.97 kB / 0.7756 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.235e-05/0.4671, allocations: 29.2 kB / 0.7756 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000762/0.4679, allocations: 465.1 kB / 0.7761 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.4679, allocations: 8.469 kB / 0.7761 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/0.4679, allocations: 14.16 kB / 0.7761 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.497e-05/0.468, allocations: 27.25 kB / 0.7761 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004919/0.4685, allocations: 323.9 kB / 0.7764 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/0.4704, allocations: 2.18 MB / 0.7785 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003448/0.4707, allocations: 253.9 kB / 0.7788 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.471, allocations: 109.8 kB / 0.7789 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.808e-06/0.471, allocations: 1.531 kB / 0.7789 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.76e-05/0.471, allocations: 36.97 kB / 0.7789 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.854e-06/0.471, allocations: 0.5625 kB / 0.7789 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0005674/0.4716, allocations: 300.7 kB / 0.7792 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.709e-05/0.4716, allocations: 53.72 kB / 0.7793 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002693/0.4719, allocations: 269.9 kB / 0.7795 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.4719, allocations: 33.83 kB / 0.7795 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.815e-05/0.4721, allocations: 208.5 kB / 0.7797 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.235e-05/0.4721, allocations: 49.8 kB / 0.7798 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.31e-05/0.4722, allocations: 52.48 kB / 0.7798 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.358e-05/0.4722, allocations: 339.6 kB / 0.7802 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.4723, allocations: 54.5 kB / 0.7802 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.4725, allocations: 148.3 kB / 0.7804 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002366/0.4727, allocations: 214.3 kB / 0.7806 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4727, allocations: 0.9375 kB / 0.7806 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004293/0.4732, allocations: 271.7 kB / 0.7808 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.4732, allocations: 8.922 kB / 0.7808 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.4732, allocations: 4.406 kB / 0.7808 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001788/0.4734, allocations: 30.81 kB / 0.7809 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.4736, allocations: 47.98 kB / 0.7809 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007977/0.4744, allocations: 1.422 MB / 0.7823 GB, free: 9.855 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001658/0.4746, allocations: 31.66 kB / 0.7823 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.4746, allocations: 12.31 kB / 0.7823 GB, free: 9.832 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.0001356/0.4748, allocations: 168.5 kB / 0.7825 GB, free: 9.691 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.168e-05/0.4748, allocations: 34 kB / 0.7825 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.336e-05/0.4749, allocations: 26.45 kB / 0.7826 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.4749, allocations: 1.281 kB / 0.7826 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.227e-06/0.4749, allocations: 1.031 kB / 0.7826 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.4749, allocations: 3.156 kB / 0.7826 GB, free: 9.656 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008464/0.4758, allocations: 0.7023 MB / 0.7833 GB, free: 9.113 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4758, allocations: 1.906 kB / 0.7833 GB, free: 9.113 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.608e-05/0.4759, allocations: 28.44 kB / 0.7833 GB, free: 9.109 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.857e-05/0.4759, allocations: 20.38 kB / 0.7833 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.476, allocations: 10.97 kB / 0.7833 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000653/0.4766, allocations: 1.415 MB / 0.7847 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.4766, allocations: 14.78 kB / 0.7847 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.4769, allocations: 317.6 kB / 0.785 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.341e-05/0.477, allocations: 112.3 kB / 0.7851 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.477, allocations: 10.38 kB / 0.7851 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.4772, allocations: 10.98 kB / 0.7851 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.549e-05/0.4772, allocations: 16.72 kB / 0.7852 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.4773, allocations: 4.812 kB / 0.7852 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001467/0.4774, allocations: 193.5 kB / 0.7853 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4774, allocations: 0 / 0.7853 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000395/0.4778, allocations: 83.62 kB / 0.7854 GB, free: 7.152 MB / 0.5606 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.0004216/0.4782, allocations: 0.8513 MB / 0.7863 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003912/0.4786, allocations: 275.5 kB / 0.7865 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4787, allocations: 0.9375 kB / 0.7865 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.4788, allocations: 179.9 kB / 0.7867 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004457/0.4793, allocations: 58.12 kB / 0.7867 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.4818, allocations: 2.716 MB / 0.7894 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.4821, allocations: 0.7929 MB / 0.7902 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001387/0.4822, allocations: 44.47 kB / 0.7902 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.504e-05/0.4823, allocations: 84.94 kB / 0.7903 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of SimCode: time 3.81e-07/0.4823, allocations: 1.031 kB / 0.7903 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02345/0.5058, allocations: 5.408 MB / 0.7956 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.96/9.466, allocations: 19.88 kB / 0.7956 GB, free: 2.688 MB / 0.5606 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)