Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.LinearizedLoad,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",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.007419/0.007419, allocations: 98.91 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.001736/0.001736, allocations: 196.2 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.218/1.218, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.218/2.218, allocations: 390.3 MB / 0.6648 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 59.91 kB / 0.9504 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6962/0.6974, allocations: 140.4 MB / 1.087 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005009/0.7024, allocations: 4.102 MB / 1.091 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002241/0.7047, allocations: 1.583 MB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.7049, allocations: 7.812 kB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001586/0.7064, allocations: 0.5881 MB / 1.094 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004649/0.7069, allocations: 233.2 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005258/0.7075, allocations: 211.2 kB / 1.094 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006086/0.7081, allocations: 0.5497 MB / 1.095 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007017/0.7088, allocations: 479.8 kB / 1.095 GB, free: 384 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002641/0.7091, allocations: 226.6 kB / 1.095 GB, free: 288 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004247/0.7095, allocations: 257.8 kB / 1.095 GB, free: 176 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.613e-05/0.7096, allocations: 34.56 kB / 1.095 GB, free: 176 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002995/0.7099, allocations: 171.2 kB / 1.096 GB, free: 120 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001666/0.7101, allocations: 144.4 kB / 1.096 GB, free: 64 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002243/0.7103, allocations: 202.9 kB / 1.096 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0006917/0.711, allocations: 0.5162 MB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.711, allocations: 1.094 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.907e-06/0.711, allocations: 0 / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.717e-05/0.711, allocations: 4.734 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001551/0.7126, allocations: 0.6766 MB / 1.097 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/0.7127, allocations: 9.906 kB / 1.097 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.7128, allocations: 81.09 kB / 1.097 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007837/0.7136, allocations: 102.8 kB / 1.097 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/0.7141, allocations: 309.3 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.218e-05/0.7141, allocations: 51.3 kB / 1.098 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.964e-05/0.7142, allocations: 34.44 kB / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009605/0.7152, allocations: 0.5037 MB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.7152, allocations: 5 kB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.385e-05/0.7153, allocations: 15.23 kB / 1.098 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.157e-05/0.7153, allocations: 32.48 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007806/0.7161, allocations: 379.8 kB / 1.099 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002629/0.7188, allocations: 2.205 MB / 1.101 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007426/0.7195, allocations: 254.5 kB / 1.101 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003756/0.7199, allocations: 155.8 kB / 1.101 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.481e-05/0.7199, allocations: 6.547 kB / 1.101 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.72, allocations: 37.45 kB / 1.101 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=19): time 1.703e-06/0.72, allocations: 3.938 kB / 1.101 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001612/0.7216, allocations: 0.5682 MB / 1.102 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.7216, allocations: 53.94 kB / 1.102 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.7219, allocations: 223.5 kB / 1.102 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.7219, allocations: 31.39 kB / 1.102 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.7221, allocations: 219.2 kB / 1.102 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.5e-05/0.7221, allocations: 65.06 kB / 1.102 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.048e-05/0.7222, allocations: 50.59 kB / 1.102 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.7224, allocations: 334.2 kB / 1.103 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.7226, allocations: 97.27 kB / 1.103 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.7229, allocations: 183.9 kB / 1.103 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005626/0.7235, allocations: 273.6 kB / 1.103 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.7235, allocations: 4.531 kB / 1.103 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009436/0.7245, allocations: 375 kB / 1.104 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.7245, allocations: 6.344 kB / 1.104 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.7245, allocations: 3.438 kB / 1.104 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005072/0.725, allocations: 114.5 kB / 1.104 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.7252, allocations: 53.02 kB / 1.104 GB, free: 10.67 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003269/0.7285, allocations: 3.044 MB / 1.107 GB, free: 7.762 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.7288, allocations: 39.14 kB / 1.107 GB, free: 7.738 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.205e-05/0.7288, allocations: 8.25 kB / 1.107 GB, free: 7.738 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003474/0.7292, allocations: 233.7 kB / 1.107 GB, free: 7.602 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002803/0.7295, allocations: 177.7 kB / 1.107 GB, free: 7.465 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004709/0.73, allocations: 267 kB / 1.107 GB, free: 7.301 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.673e-06/0.73, allocations: 1.406 kB / 1.107 GB, free: 7.301 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008085/0.7308, allocations: 350.9 kB / 1.108 GB, free: 7.156 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.889e-06/0.7308, allocations: 5.875 kB / 1.108 GB, free: 7.156 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.7308, allocations: 3.359 kB / 1.108 GB, free: 7.156 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003145/0.7311, allocations: 82.7 kB / 1.108 GB, free: 7.133 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.7314, allocations: 56.38 kB / 1.108 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001965/0.7334, allocations: 1.609 MB / 1.109 GB, free: 5.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.7336, allocations: 36.08 kB / 1.11 GB, free: 5.641 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.7337, allocations: 12.64 kB / 1.11 GB, free: 5.637 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001247/0.7338, allocations: 201.7 kB / 1.11 GB, free: 5.438 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.228e-05/0.7338, allocations: 23.98 kB / 1.11 GB, free: 5.426 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.482e-05/0.7339, allocations: 33.8 kB / 1.11 GB, free: 5.402 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.7339, allocations: 5.531 kB / 1.11 GB, free: 5.398 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.7339, allocations: 5.672 kB / 1.11 GB, free: 5.395 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.7339, allocations: 5.312 kB / 1.11 GB, free: 5.391 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.7354, allocations: 0.8251 MB / 1.111 GB, free: 4.832 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.7354, allocations: 1.672 kB / 1.111 GB, free: 4.832 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.7355, allocations: 28.91 kB / 1.111 GB, free: 4.832 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004006/0.736, allocations: 105.2 kB / 1.111 GB, free: 4.797 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.736, allocations: 1.812 kB / 1.111 GB, free: 4.797 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002876/0.7389, allocations: 3.024 MB / 1.114 GB, free: 1.902 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.7389, allocations: 1.094 kB / 1.114 GB, free: 1.902 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008127/0.7397, allocations: 411.9 kB / 1.114 GB, free: 1.656 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.7398, allocations: 124 kB / 1.114 GB, free: 1.535 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.7399, allocations: 6.781 kB / 1.114 GB, free: 1.531 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.74, allocations: 7.625 kB / 1.114 GB, free: 1.531 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.853e-05/0.7401, allocations: 24.02 kB / 1.114 GB, free: 1.523 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.7402, allocations: 16.19 kB / 1.114 GB, free: 1.512 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001464/0.7403, allocations: 162.8 kB / 1.114 GB, free: 1.41 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7403, allocations: 0 / 1.114 GB, free: 1.41 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006317/0.7409, allocations: 173.2 kB / 1.115 GB, free: 1.363 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001031/0.742, allocations: 0.9402 MB / 1.115 GB, free: 0.5898 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001924/0.7439, allocations: 0.7633 MB / 1.116 GB, free: 136 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.7439, allocations: 1.375 kB / 1.116 GB, free: 136 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008141/0.7448, allocations: 375.5 kB / 1.117 GB, free: 15.87 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004412/0.7452, allocations: 63.61 kB / 1.117 GB, free: 15.84 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004089/0.7493, allocations: 2.834 MB / 1.119 GB, free: 13.89 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.7497, allocations: 0.8105 MB / 1.12 GB, free: 13.18 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001904/0.7499, allocations: 56.2 kB / 1.12 GB, free: 13.16 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.7501, allocations: 92.25 kB / 1.12 GB, free: 13.09 MB / 0.8887 GB Notification: Performance of SimCode: time 2.51e-07/0.7501, allocations: 3.938 kB / 1.12 GB, free: 13.09 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3044/1.054, allocations: 7.355 MB / 1.128 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/14.1, allocations: 10.69 kB / 1.128 GB, free: 12.29 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat does not exist to compare? outputFormat=mat