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.005148/0.005149, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001543/0.001543, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002218/0.002218, allocations: 290.1 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9952/0.9952, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 96.17 kB / 0.6809 GB, free: 60 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1518, allocations: 86.98 MB / 0.7659 GB, free: 9 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004527/0.1564, allocations: 3.052 MB / 0.7689 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002084/0.1585, allocations: 1.34 MB / 0.7702 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001827/0.1587, allocations: 7.938 kB / 0.7702 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.1597, allocations: 326.8 kB / 0.7705 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003791/0.1601, allocations: 143.2 kB / 0.7706 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003572/0.1605, allocations: 135.7 kB / 0.7708 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003803/0.1609, allocations: 318.6 kB / 0.7711 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004196/0.1613, allocations: 240.2 kB / 0.7713 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.1615, allocations: 123.5 kB / 0.7714 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002927/0.1618, allocations: 135.5 kB / 0.7715 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.356e-05/0.1619, allocations: 16 kB / 0.7716 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003197/0.1622, allocations: 171.6 kB / 0.7717 GB, free: 3 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.042e-05/0.1623, allocations: 83.78 kB / 0.7718 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.1624, allocations: 107.5 kB / 0.7719 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004314/0.1628, allocations: 330.8 kB / 0.7722 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1629, allocations: 0 / 0.7722 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of FrontEnd: time 4.909e-06/0.1629, allocations: 8 kB / 0.7722 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.267e-06/0.1629, allocations: 3.938 kB / 0.7722 GB, free: 2.477 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008156/0.1637, allocations: 0.522 MB / 0.7727 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1638, allocations: 8.031 kB / 0.7727 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.865e-05/0.1638, allocations: 54.73 kB / 0.7728 GB, free: 1.832 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005679/0.1644, allocations: 88.64 kB / 0.7729 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.1647, allocations: 246.6 kB / 0.7731 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.1647, allocations: 12.75 kB / 0.7731 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.1648, allocations: 28.36 kB / 0.7732 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004038/0.1652, allocations: 299.3 kB / 0.7734 GB, free: 1.117 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1652, allocations: 0 / 0.7734 GB, free: 1.117 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.1652, allocations: 8 kB / 0.7735 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/0.1653, allocations: 20.36 kB / 0.7735 GB, free: 1.09 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002841/0.1656, allocations: 196.9 kB / 0.7737 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3338/0.4994, allocations: 1.451 MB / 0.7751 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002541/0.4997, allocations: 175.4 kB / 0.7752 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.192e-05/0.4998, allocations: 31.94 kB / 0.7753 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.656e-06/0.4998, allocations: 5.656 kB / 0.7753 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.696e-05/0.4998, allocations: 35.66 kB / 0.7753 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.944e-06/0.4998, allocations: 0.5625 kB / 0.7753 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0004666/0.5003, allocations: 222.7 kB / 0.7755 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.5003, allocations: 53.31 kB / 0.7756 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000183/0.5005, allocations: 203.6 kB / 0.7758 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.788e-06/0.5005, allocations: 26.48 kB / 0.7758 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.02e-05/0.5006, allocations: 170.3 kB / 0.776 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.5006, allocations: 26.14 kB / 0.776 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.331e-05/0.5007, allocations: 37.83 kB / 0.776 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.776e-05/0.5007, allocations: 328.7 kB / 0.7763 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.545e-05/0.5008, allocations: 35.33 kB / 0.7764 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.165e-05/0.5009, allocations: 101 kB / 0.7765 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.5011, allocations: 155.3 kB / 0.7766 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5011, allocations: 1.594 kB / 0.7766 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002831/0.5013, allocations: 193.9 kB / 0.7768 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.5014, allocations: 8.641 kB / 0.7768 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.5014, allocations: 1.844 kB / 0.7768 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001534/0.5015, allocations: 25.81 kB / 0.7768 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.5017, allocations: 29.64 kB / 0.7769 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007444/0.5024, allocations: 1.421 MB / 0.7783 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.5025, allocations: 15.03 kB / 0.7783 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.5026, allocations: 9.5 kB / 0.7783 GB, free: 11.94 MB / 0.5606 GB 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.0001005/0.5027, allocations: 154.1 kB / 0.7784 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.817e-05/0.5027, allocations: 16.78 kB / 0.7784 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.692e-05/0.5028, allocations: 17.78 kB / 0.7785 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.5028, allocations: 1.938 kB / 0.7785 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.5028, allocations: 0 / 0.7785 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.5028, allocations: 1.188 kB / 0.7785 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004226/0.5032, allocations: 445.4 kB / 0.7789 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.5032, allocations: 2.234 kB / 0.7789 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.717e-05/0.5033, allocations: 11.17 kB / 0.7789 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.168e-05/0.5033, allocations: 23.88 kB / 0.7789 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.5034, allocations: 6.984 kB / 0.7789 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006241/0.504, allocations: 1.416 MB / 0.7803 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.504, allocations: 0.875 kB / 0.7803 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001767/0.5042, allocations: 213.9 kB / 0.7805 GB, free: 9.984 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.471e-05/0.5043, allocations: 102.1 kB / 0.7806 GB, free: 9.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.5043, allocations: 3.281 kB / 0.7806 GB, free: 9.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.5044, allocations: 4.656 kB / 0.7806 GB, free: 9.883 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.776e-05/0.5044, allocations: 8.766 kB / 0.7806 GB, free: 9.879 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.341e-06/0.5044, allocations: 5.5 kB / 0.7806 GB, free: 9.879 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001137/0.5045, allocations: 142.2 kB / 0.7808 GB, free: 9.805 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5046, allocations: 0.75 kB / 0.7808 GB, free: 9.805 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003354/0.5049, allocations: 52.27 kB / 0.7808 GB, free: 9.797 MB / 0.5606 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.0003267/0.5052, allocations: 0.7482 MB / 0.7815 GB, free: 9.098 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003174/0.5056, allocations: 206.2 kB / 0.7817 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5056, allocations: 4.188 kB / 0.7817 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.5057, allocations: 153.3 kB / 0.7819 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.506, allocations: 37.31 kB / 0.7819 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.5079, allocations: 2.036 MB / 0.7839 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001835/0.5081, allocations: 0.7544 MB / 0.7847 GB, free: 6.484 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.335e-05/0.5082, allocations: 25.02 kB / 0.7847 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.185e-05/0.5082, allocations: 52.3 kB / 0.7847 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of SimCode: time 3.21e-07/0.5082, allocations: 0 / 0.7847 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02154/0.5298, allocations: 3.743 MB / 0.7884 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.868/9.398, allocations: 21.36 kB / 0.7884 GB, free: 5.934 MB / 0.5606 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)