Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_Buildings_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.0009601/0.0009597, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.001156/0.001156, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.3 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.487/2.487, allocations: 390.4 MB / 0.6655 GB, free: 2.809 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003635, allocations: 8 kB / 0.8149 GB, free: 14.05 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8135/0.8138, allocations: 142.3 MB / 0.9538 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005226/0.8191, allocations: 3.358 MB / 0.9571 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003353/0.8225, allocations: 1.602 MB / 0.9587 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000366/0.8229, allocations: 10 kB / 0.9587 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003339/0.8233, allocations: 60.61 kB / 0.9588 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007723/0.8241, allocations: 175.1 kB / 0.9589 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006944/0.8248, allocations: 151.2 kB / 0.9591 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008709/0.8257, allocations: 0.5321 MB / 0.9596 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005349/0.8262, allocations: 292.8 kB / 0.9599 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003578/0.8266, allocations: 156.2 kB / 0.96 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005513/0.8271, allocations: 199.4 kB / 0.9602 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.953e-05/0.8272, allocations: 15.03 kB / 0.9602 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004436/0.8277, allocations: 113.5 kB / 0.9603 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.8279, allocations: 106.8 kB / 0.9604 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.828, allocations: 85.3 kB / 0.9605 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005247/0.8285, allocations: 376.2 kB / 0.9609 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.8285, allocations: 4 kB / 0.9609 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.465e-06/0.8286, allocations: 4.969 kB / 0.9609 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.734e-05/0.8286, allocations: 0 / 0.9609 GB, free: 2.82 MB / 0.7169 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.001133/0.8297, allocations: 0.5758 MB / 0.9614 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.8298, allocations: 13.75 kB / 0.9615 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001414/0.8299, allocations: 70.55 kB / 0.9615 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/0.831, allocations: 137.8 kB / 0.9617 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/0.8315, allocations: 282.7 kB / 0.9619 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.8315, allocations: 27.8 kB / 0.9619 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.171e-05/0.8316, allocations: 26.38 kB / 0.962 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008105/0.8324, allocations: 460.4 kB / 0.9624 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.8324, allocations: 0 / 0.9624 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.259e-05/0.8325, allocations: 19.8 kB / 0.9624 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.22e-05/0.8326, allocations: 34.77 kB / 0.9625 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006199/0.8332, allocations: 318.5 kB / 0.9628 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002645/0.8358, allocations: 2.19 MB / 0.9649 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005555/0.8364, allocations: 246.1 kB / 0.9651 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003228/0.8368, allocations: 115.4 kB / 0.9653 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.8368, allocations: 5.969 kB / 0.9653 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.8368, allocations: 31.97 kB / 0.9653 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.462e-06/0.8368, allocations: 0 / 0.9653 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.000768/0.8376, allocations: 309.1 kB / 0.9656 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.8377, allocations: 53.28 kB / 0.9656 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003998/0.8381, allocations: 268.8 kB / 0.9659 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.818e-05/0.8381, allocations: 30.98 kB / 0.9659 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.8383, allocations: 206.4 kB / 0.9661 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.415e-05/0.8384, allocations: 45.89 kB / 0.9662 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.188e-05/0.8384, allocations: 4 kB / 0.9662 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.8386, allocations: 333.9 kB / 0.9665 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.8387, allocations: 57.08 kB / 0.9665 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.8389, allocations: 139.2 kB / 0.9667 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000149/0.839, allocations: 79.89 kB / 0.9667 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.839, allocations: 1.312 kB / 0.9667 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005007/0.8395, allocations: 270.2 kB / 0.967 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.8396, allocations: 6.156 kB / 0.967 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.8396, allocations: 6.609 kB / 0.967 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002111/0.8398, allocations: 27.41 kB / 0.967 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.84, allocations: 49.7 kB / 0.9671 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.8414, allocations: 1.318 MB / 0.9684 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002435/0.8416, allocations: 32.31 kB / 0.9684 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.8417, allocations: 9.438 kB / 0.9684 GB, free: 12.13 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002636/0.8419, allocations: 172.7 kB / 0.9686 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.119e-05/0.842, allocations: 31.67 kB / 0.9686 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.365e-05/0.8421, allocations: 28.08 kB / 0.9686 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.8421, allocations: 2 kB / 0.9686 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.8421, allocations: 4.844 kB / 0.9686 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.8421, allocations: 0 / 0.9686 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/0.8434, allocations: 0.7029 MB / 0.9693 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.8434, allocations: 1.094 kB / 0.9693 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.8435, allocations: 31.23 kB / 0.9694 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-05/0.8436, allocations: 24.31 kB / 0.9694 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.8436, allocations: 7.125 kB / 0.9694 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.8448, allocations: 1.312 MB / 0.9707 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.882e-06/0.8448, allocations: 5.922 kB / 0.9707 GB, free: 9.922 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000403/0.8452, allocations: 318.3 kB / 0.971 GB, free: 9.652 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.8454, allocations: 117.6 kB / 0.9711 GB, free: 9.531 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.061e-05/0.8454, allocations: 6.953 kB / 0.9711 GB, free: 9.527 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.8456, allocations: 19.58 kB / 0.9711 GB, free: 9.516 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.646e-05/0.8456, allocations: 14.7 kB / 0.9711 GB, free: 9.508 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.8456, allocations: 8.25 kB / 0.9711 GB, free: 9.504 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002342/0.8459, allocations: 185.4 kB / 0.9713 GB, free: 9.375 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8459, allocations: 0 / 0.9713 GB, free: 9.375 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004721/0.8464, allocations: 76.03 kB / 0.9714 GB, free: 9.359 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006881/0.8471, allocations: 0.851 MB / 0.9722 GB, free: 8.559 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005219/0.8476, allocations: 273.7 kB / 0.9725 GB, free: 8.371 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.8476, allocations: 1.75 kB / 0.9725 GB, free: 8.371 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.8479, allocations: 184 kB / 0.9727 GB, free: 8.223 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.8484, allocations: 54.34 kB / 0.9727 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.8508, allocations: 1.531 MB / 0.9742 GB, free: 7.059 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.8512, allocations: 0.7887 MB / 0.975 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001686/0.8514, allocations: 40.64 kB / 0.975 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.8516, allocations: 88.31 kB / 0.9751 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of SimCode: time 9.52e-07/0.8516, allocations: 0 / 0.9751 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01659/0.8682, allocations: 4.913 MB / 0.9799 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/0.8684, allocations: 204.1 kB / 0.9801 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.812/2.681, allocations: 0 / 0.9801 GB, free: 3.691 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat