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.007292/0.007292, allocations: 99.38 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.001453/0.001453, allocations: 196 kB / 16.68 MB, free: 5.93 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002117/0.002117, allocations: 294.8 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9503/0.9503, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 87.86 kB / 0.6809 GB, free: 7.441 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4224/0.4243, allocations: 86.99 MB / 0.7659 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005138/0.4294, allocations: 3.825 MB / 0.7696 GB, free: 15.96 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002598/0.432, allocations: 1.722 MB / 0.7713 GB, free: 14.23 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002204/0.4323, allocations: 8 kB / 0.7713 GB, free: 14.22 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.4336, allocations: 0.4903 MB / 0.7718 GB, free: 13.73 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005045/0.4342, allocations: 230.8 kB / 0.772 GB, free: 13.5 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005204/0.4347, allocations: 202.3 kB / 0.7722 GB, free: 13.31 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005364/0.4352, allocations: 482.1 kB / 0.7727 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005344/0.4358, allocations: 361.1 kB / 0.773 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002474/0.436, allocations: 203.2 kB / 0.7732 GB, free: 12.28 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003964/0.4364, allocations: 219.2 kB / 0.7734 GB, free: 12.07 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.14e-05/0.4365, allocations: 28 kB / 0.7734 GB, free: 12.04 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004415/0.437, allocations: 247.4 kB / 0.7737 GB, free: 11.8 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.4371, allocations: 123.7 kB / 0.7738 GB, free: 11.68 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.4373, allocations: 171.2 kB / 0.774 GB, free: 11.51 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005244/0.4378, allocations: 0.4984 MB / 0.7744 GB, free: 11.01 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.4378, allocations: 0 / 0.7744 GB, free: 11.01 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.102e-06/0.4378, allocations: 0 / 0.7744 GB, free: 11.01 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.698e-06/0.4379, allocations: 0 / 0.7744 GB, free: 11.01 MB / 0.545 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.0009178/0.4388, allocations: 0.6354 MB / 0.7751 GB, free: 10.32 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.4388, allocations: 12.03 kB / 0.7751 GB, free: 10.31 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.496e-05/0.4389, allocations: 66.72 kB / 0.7751 GB, free: 10.24 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008483/0.4398, allocations: 132.3 kB / 0.7753 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.4401, allocations: 295.7 kB / 0.7755 GB, free: 9.77 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.4401, allocations: 21.03 kB / 0.7756 GB, free: 9.75 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/0.4402, allocations: 36.3 kB / 0.7756 GB, free: 9.715 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005763/0.4408, allocations: 463.7 kB / 0.776 GB, free: 9.227 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.4408, allocations: 4 kB / 0.776 GB, free: 9.223 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.4408, allocations: 12 kB / 0.7761 GB, free: 9.211 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.276e-05/0.4409, allocations: 28.55 kB / 0.7761 GB, free: 9.184 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004469/0.4413, allocations: 325.9 kB / 0.7764 GB, free: 8.863 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.4432, allocations: 2.177 MB / 0.7785 GB, free: 6.473 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003408/0.4436, allocations: 259.7 kB / 0.7788 GB, free: 6.191 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002157/0.4438, allocations: 104.8 kB / 0.7789 GB, free: 6.086 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.4438, allocations: 0 / 0.7789 GB, free: 6.086 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.4439, allocations: 30.62 kB / 0.7789 GB, free: 6.047 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.4439, allocations: 4 kB / 0.7789 GB, free: 6.043 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0005736/0.4445, allocations: 307.5 kB / 0.7792 GB, free: 5.715 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.4445, allocations: 55.41 kB / 0.7793 GB, free: 5.648 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.4448, allocations: 266.5 kB / 0.7795 GB, free: 5.387 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.4448, allocations: 25.7 kB / 0.7795 GB, free: 5.355 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.445, allocations: 211.8 kB / 0.7797 GB, free: 5.145 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.673e-05/0.445, allocations: 47.3 kB / 0.7798 GB, free: 5.098 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.533e-05/0.4451, allocations: 53.84 kB / 0.7798 GB, free: 5.035 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.4452, allocations: 338.8 kB / 0.7802 GB, free: 4.695 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.725e-05/0.4453, allocations: 60.44 kB / 0.7802 GB, free: 4.637 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.4455, allocations: 144.1 kB / 0.7803 GB, free: 4.457 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.4457, allocations: 210.9 kB / 0.7805 GB, free: 4.211 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4457, allocations: 4 kB / 0.7806 GB, free: 4.207 MB / 0.545 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004022/0.4461, allocations: 268.7 kB / 0.7808 GB, free: 3.938 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.4462, allocations: 8 kB / 0.7808 GB, free: 3.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4462, allocations: 4 kB / 0.7808 GB, free: 3.926 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001653/0.4464, allocations: 24.84 kB / 0.7808 GB, free: 3.898 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.4466, allocations: 52.3 kB / 0.7809 GB, free: 3.848 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.4477, allocations: 1.414 MB / 0.7823 GB, free: 2.293 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.4479, allocations: 31.62 kB / 0.7823 GB, free: 2.262 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.4479, allocations: 19.97 kB / 0.7823 GB, free: 2.242 MB / 0.545 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.000166/0.4481, allocations: 165.6 kB / 0.7825 GB, free: 2.07 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/0.4481, allocations: 27.7 kB / 0.7825 GB, free: 2.043 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.61e-05/0.4482, allocations: 25.84 kB / 0.7825 GB, free: 2.016 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.4482, allocations: 64 / 0.7825 GB, free: 2.016 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.4482, allocations: 4 kB / 0.7825 GB, free: 2.012 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4482, allocations: 7.969 kB / 0.7825 GB, free: 2.004 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008842/0.4491, allocations: 0.7026 MB / 0.7832 GB, free: 1.211 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4491, allocations: 4 kB / 0.7832 GB, free: 1.207 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.495e-05/0.4492, allocations: 23.98 kB / 0.7833 GB, free: 1.184 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.002e-05/0.4493, allocations: 24.78 kB / 0.7833 GB, free: 1.156 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.4493, allocations: 8 kB / 0.7833 GB, free: 1.148 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009733/0.4503, allocations: 1.41 MB / 0.7847 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4503, allocations: 3.938 kB / 0.7847 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003189/0.4506, allocations: 325.1 kB / 0.785 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.4508, allocations: 112.8 kB / 0.7851 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.4508, allocations: 8 kB / 0.7851 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.451, allocations: 11.98 kB / 0.7851 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.966e-05/0.451, allocations: 19.92 kB / 0.7851 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.451, allocations: 4 kB / 0.7851 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001786/0.4512, allocations: 186 kB / 0.7853 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4512, allocations: 0 / 0.7853 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003853/0.4516, allocations: 79.69 kB / 0.7854 GB, free: 14.81 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.0005826/0.4522, allocations: 0.8584 MB / 0.7862 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004492/0.4527, allocations: 278.2 kB / 0.7865 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4527, allocations: 0 / 0.7865 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002031/0.4529, allocations: 182.7 kB / 0.7867 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.4533, allocations: 51.84 kB / 0.7867 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002828/0.4562, allocations: 2.707 MB / 0.7894 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.4565, allocations: 0.7986 MB / 0.7901 GB, free: 9.66 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001327/0.4567, allocations: 42.2 kB / 0.7902 GB, free: 9.621 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.4568, allocations: 79.42 kB / 0.7902 GB, free: 9.543 MB / 0.5606 GB Notification: Performance of SimCode: time 5.21e-07/0.4568, allocations: 4 kB / 0.7903 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.4823, allocations: 5.413 MB / 0.7955 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.327/9.809, allocations: 7.984 kB / 0.7955 GB, free: 4.289 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Loads_Examples_Resistor.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)