Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_latest_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.00707/0.00707, allocations: 101.9 kB / 15.73 MB, free: 6 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.00172/0.00172, allocations: 193.5 kB / 16.67 MB, free: 5.926 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.56/2.56, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001354, allocations: 67.84 kB / 1.054 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.804/0.8054, allocations: 157.4 MB / 1.207 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006393/0.8118, allocations: 4.113 MB / 1.211 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002799/0.8146, allocations: 1.589 MB / 1.213 GB, free: 7.883 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003151/0.815, allocations: 8 kB / 1.213 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.8167, allocations: 0.587 MB / 1.213 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0006338/0.8173, allocations: 234.8 kB / 1.214 GB, free: 7.059 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006013/0.8179, allocations: 211.6 kB / 1.214 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007448/0.8187, allocations: 0.5491 MB / 1.214 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008174/0.8195, allocations: 476 kB / 1.215 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003804/0.8199, allocations: 227.3 kB / 1.215 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005806/0.8205, allocations: 251 kB / 1.215 GB, free: 5.359 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 8.245e-05/0.8206, allocations: 36 kB / 1.215 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003747/0.821, allocations: 167.6 kB / 1.215 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.8212, allocations: 139.7 kB / 1.216 GB, free: 5.023 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.8214, allocations: 203.1 kB / 1.216 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007374/0.8222, allocations: 0.5257 MB / 1.216 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.8222, allocations: 0 / 1.216 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.322e-06/0.8222, allocations: 0 / 1.216 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.731e-05/0.8222, allocations: 0 / 1.216 GB, free: 4.297 MB / 0.9356 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.001421/0.8236, allocations: 0.6825 MB / 1.217 GB, free: 3.566 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.8237, allocations: 12.03 kB / 1.217 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.581e-05/0.8238, allocations: 78.66 kB / 1.217 GB, free: 3.469 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007412/0.8245, allocations: 104.5 kB / 1.217 GB, free: 3.367 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004274/0.825, allocations: 303.6 kB / 1.217 GB, free: 3.031 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.919e-05/0.825, allocations: 59.25 kB / 1.217 GB, free: 2.969 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.8252, allocations: 28.38 kB / 1.218 GB, free: 2.941 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007915/0.826, allocations: 0.5046 MB / 1.218 GB, free: 2.414 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.826, allocations: 4 kB / 1.218 GB, free: 2.41 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.872e-05/0.826, allocations: 12 kB / 1.218 GB, free: 2.398 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-05/0.8261, allocations: 32.98 kB / 1.218 GB, free: 2.367 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007225/0.8268, allocations: 379.7 kB / 1.218 GB, free: 1.996 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002508/0.8293, allocations: 2.196 MB / 1.221 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007219/0.8301, allocations: 262.6 kB / 1.221 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003588/0.8304, allocations: 144.8 kB / 1.221 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.8305, allocations: 8 kB / 1.221 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.8305, allocations: 38.55 kB / 1.221 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=19): time 1.894e-06/0.8305, allocations: 4 kB / 1.221 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.001529/0.8321, allocations: 0.565 MB / 1.222 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.8321, allocations: 55.41 kB / 1.222 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003175/0.8325, allocations: 225 kB / 1.222 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.024e-05/0.8325, allocations: 33.7 kB / 1.222 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.8327, allocations: 219.6 kB / 1.222 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.384e-05/0.8327, allocations: 63.09 kB / 1.222 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.8329, allocations: 53.61 kB / 1.222 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002559/0.8331, allocations: 334.8 kB / 1.222 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.8334, allocations: 100.7 kB / 1.223 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002624/0.8336, allocations: 184.3 kB / 1.223 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004912/0.8341, allocations: 275.1 kB / 1.223 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.8342, allocations: 3.938 kB / 1.223 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009901/0.8351, allocations: 373.2 kB / 1.223 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.8352, allocations: 4 kB / 1.223 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.8352, allocations: 8 kB / 1.223 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005079/0.8357, allocations: 113.7 kB / 1.224 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.8359, allocations: 51.84 kB / 1.224 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003362/0.8393, allocations: 3.039 MB / 1.227 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.8396, allocations: 39.8 kB / 1.227 GB, free: 8.941 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.8396, allocations: 8 kB / 1.227 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003227/0.8399, allocations: 232 kB / 1.227 GB, free: 8.703 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003145/0.8402, allocations: 184.1 kB / 1.227 GB, free: 8.484 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005376/0.8408, allocations: 269.2 kB / 1.227 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.398e-06/0.8408, allocations: 4 kB / 1.227 GB, free: 8.184 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007589/0.8416, allocations: 347.6 kB / 1.228 GB, free: 7.836 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.8416, allocations: 4 kB / 1.228 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.8416, allocations: 8.297 kB / 1.228 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003441/0.842, allocations: 84.72 kB / 1.228 GB, free: 7.738 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.8422, allocations: 55.97 kB / 1.228 GB, free: 7.684 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002009/0.8442, allocations: 1.613 MB / 1.229 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.8445, allocations: 39.73 kB / 1.229 GB, free: 5.891 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.612e-05/0.8446, allocations: 12 kB / 1.229 GB, free: 5.879 MB / 0.9512 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.000135/0.8447, allocations: 196.1 kB / 1.23 GB, free: 5.68 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.598e-05/0.8448, allocations: 19.81 kB / 1.23 GB, free: 5.66 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.07e-05/0.8449, allocations: 30.17 kB / 1.23 GB, free: 5.633 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.8449, allocations: 4.141 kB / 1.23 GB, free: 5.629 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.8449, allocations: 3.938 kB / 1.23 GB, free: 5.625 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.8449, allocations: 7.984 kB / 1.23 GB, free: 5.617 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.8464, allocations: 0.8211 MB / 1.23 GB, free: 4.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.8464, allocations: 4.062 kB / 1.23 GB, free: 4.711 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.8466, allocations: 31.98 kB / 1.23 GB, free: 4.68 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003812/0.8469, allocations: 101.6 kB / 1.231 GB, free: 4.574 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.847, allocations: 7.938 kB / 1.231 GB, free: 4.566 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003058/0.85, allocations: 3.019 MB / 1.233 GB, free: 1.27 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.8501, allocations: 0 / 1.233 GB, free: 1.27 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009455/0.851, allocations: 418.9 kB / 1.234 GB, free: 0.8359 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.8511, allocations: 112.8 kB / 1.234 GB, free: 0.707 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/0.8512, allocations: 15.98 kB / 1.234 GB, free: 0.6914 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.8514, allocations: 8 kB / 1.234 GB, free: 0.6836 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.791e-05/0.8515, allocations: 23.91 kB / 1.234 GB, free: 0.6602 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.8515, allocations: 8 kB / 1.234 GB, free: 0.6523 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001444/0.8516, allocations: 164.5 kB / 1.234 GB, free: 500 kB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8516, allocations: 3.938 kB / 1.234 GB, free: 496 kB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006634/0.8523, allocations: 175.3 kB / 1.234 GB, free: 320 kB / 0.9512 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.001155/0.8535, allocations: 0.9419 MB / 1.235 GB, free: 15.33 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001915/0.8554, allocations: 0.7682 MB / 1.236 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.8554, allocations: 0 / 1.236 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000733/0.8562, allocations: 365.8 kB / 1.236 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004493/0.8566, allocations: 62.08 kB / 1.236 GB, free: 14.08 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004122/0.8608, allocations: 2.834 MB / 1.239 GB, free: 11.07 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.8612, allocations: 0.8107 MB / 1.24 GB, free: 10.24 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001905/0.8614, allocations: 54.25 kB / 1.24 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.8615, allocations: 91.41 kB / 1.24 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of SimCode: time 3.086e-06/0.8615, allocations: 4 kB / 1.24 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03257/0.8941, allocations: 7.484 MB / 1.247 GB, free: 2.785 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.57, allocations: 4.719 kB / 1.247 GB, free: 2.781 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat does not exist to compare? outputFormat=mat