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.008061/0.008061, allocations: 103.3 kB / 15.73 MB, free: 6.043 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.001754/0.001754, allocations: 190.1 kB / 16.67 MB, free: 5.961 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.379/2.379, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 59.89 kB / 1.054 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8222/0.8235, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006032/0.8296, allocations: 4.107 MB / 1.211 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002764/0.8324, allocations: 1.593 MB / 1.213 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003232/0.8327, allocations: 8 kB / 1.213 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001737/0.8345, allocations: 0.5837 MB / 1.213 GB, free: 7.242 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0007239/0.8352, allocations: 234.8 kB / 1.214 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006859/0.8359, allocations: 211.5 kB / 1.214 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0008669/0.8368, allocations: 0.5452 MB / 1.214 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008139/0.8376, allocations: 472 kB / 1.215 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004184/0.8381, allocations: 231.2 kB / 1.215 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005694/0.8386, allocations: 251.1 kB / 1.215 GB, free: 5.316 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.575e-05/0.8387, allocations: 36 kB / 1.215 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003702/0.8391, allocations: 167.7 kB / 1.215 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001924/0.8393, allocations: 151.6 kB / 1.216 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002699/0.8396, allocations: 195.1 kB / 1.216 GB, free: 4.777 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006996/0.8403, allocations: 0.5257 MB / 1.216 GB, free: 4.25 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.8403, allocations: 4 kB / 1.216 GB, free: 4.246 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.523e-06/0.8403, allocations: 0 / 1.216 GB, free: 4.246 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.732e-05/0.8404, allocations: 0 / 1.216 GB, free: 4.246 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.001472/0.8418, allocations: 0.6786 MB / 1.217 GB, free: 3.52 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.8419, allocations: 15.97 kB / 1.217 GB, free: 3.504 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.842, allocations: 78.7 kB / 1.217 GB, free: 3.418 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007854/0.8428, allocations: 100.5 kB / 1.217 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005235/0.8433, allocations: 307.6 kB / 1.217 GB, free: 2.98 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.93e-05/0.8434, allocations: 55.27 kB / 1.218 GB, free: 2.922 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.498e-05/0.8435, allocations: 28.38 kB / 1.218 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008166/0.8443, allocations: 0.5046 MB / 1.218 GB, free: 2.367 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.8443, allocations: 7.938 kB / 1.218 GB, free: 2.359 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.126e-05/0.8444, allocations: 19.98 kB / 1.218 GB, free: 2.34 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.515e-05/0.8444, allocations: 28.98 kB / 1.218 GB, free: 2.312 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006941/0.8451, allocations: 379.7 kB / 1.218 GB, free: 1.941 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.8476, allocations: 2.196 MB / 1.221 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006795/0.8483, allocations: 254.6 kB / 1.221 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003439/0.8487, allocations: 152.7 kB / 1.221 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.069e-05/0.8487, allocations: 8 kB / 1.221 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.8488, allocations: 38.56 kB / 1.221 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=19): time 1.634e-06/0.8488, allocations: 0 / 1.221 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.001473/0.8503, allocations: 0.5688 MB / 1.222 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.8503, allocations: 55.41 kB / 1.222 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.8505, allocations: 221 kB / 1.222 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.8506, allocations: 33.7 kB / 1.222 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.8507, allocations: 219.6 kB / 1.222 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.371e-05/0.8508, allocations: 67.08 kB / 1.222 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.978e-05/0.8509, allocations: 53.61 kB / 1.222 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.851, allocations: 330.8 kB / 1.223 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.8512, allocations: 96.8 kB / 1.223 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.8515, allocations: 188.3 kB / 1.223 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004587/0.852, allocations: 275.6 kB / 1.223 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.852, allocations: 3.938 kB / 1.223 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008424/0.8528, allocations: 373.1 kB / 1.223 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.8528, allocations: 4 kB / 1.223 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.8529, allocations: 4 kB / 1.223 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005066/0.8534, allocations: 109.7 kB / 1.224 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.8536, allocations: 55.78 kB / 1.224 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003107/0.8567, allocations: 3.046 MB / 1.227 GB, free: 8.926 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/0.857, allocations: 35.67 kB / 1.227 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.857, allocations: 12 kB / 1.227 GB, free: 8.879 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003125/0.8573, allocations: 220 kB / 1.227 GB, free: 8.66 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002521/0.8576, allocations: 188.1 kB / 1.227 GB, free: 8.438 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004293/0.858, allocations: 261.2 kB / 1.227 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.53e-06/0.858, allocations: 4 kB / 1.227 GB, free: 8.145 MB / 0.9512 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007398/0.8588, allocations: 351.5 kB / 1.228 GB, free: 7.793 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.8588, allocations: 4.312 kB / 1.228 GB, free: 7.789 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.8588, allocations: 8 kB / 1.228 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002871/0.8591, allocations: 80.78 kB / 1.228 GB, free: 7.699 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002151/0.8593, allocations: 55.91 kB / 1.228 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001863/0.8612, allocations: 1.619 MB / 1.229 GB, free: 5.887 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002441/0.8614, allocations: 35.73 kB / 1.229 GB, free: 5.852 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.8615, allocations: 19.94 kB / 1.229 GB, free: 5.832 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.0001205/0.8616, allocations: 196.1 kB / 1.23 GB, free: 5.633 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.852e-05/0.8617, allocations: 19.81 kB / 1.23 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.8617, allocations: 30.17 kB / 1.23 GB, free: 5.586 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.8617, allocations: 4 kB / 1.23 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.8617, allocations: 7.938 kB / 1.23 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.8617, allocations: 0 / 1.23 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.8631, allocations: 0.825 MB / 1.23 GB, free: 4.668 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.8631, allocations: 0 / 1.23 GB, free: 4.668 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.8632, allocations: 31.98 kB / 1.23 GB, free: 4.637 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003832/0.8636, allocations: 101.7 kB / 1.231 GB, free: 4.531 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.8636, allocations: 11.92 kB / 1.231 GB, free: 4.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002809/0.8665, allocations: 3.019 MB / 1.233 GB, free: 1.223 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.8665, allocations: 0 / 1.233 GB, free: 1.223 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007476/0.8672, allocations: 415.1 kB / 1.234 GB, free: 0.7891 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.8674, allocations: 116.8 kB / 1.234 GB, free: 0.6562 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.885e-05/0.8674, allocations: 8 kB / 1.234 GB, free: 0.6484 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.8676, allocations: 8 kB / 1.234 GB, free: 0.6406 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.029e-05/0.8677, allocations: 23.91 kB / 1.234 GB, free: 0.6172 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.8677, allocations: 15.94 kB / 1.234 GB, free: 0.6016 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001434/0.8678, allocations: 160.5 kB / 1.234 GB, free: 452 kB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.8679, allocations: 0 / 1.234 GB, free: 452 kB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000612/0.8685, allocations: 175.3 kB / 1.234 GB, free: 276 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.00102/0.8695, allocations: 0.9401 MB / 1.235 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001896/0.8714, allocations: 0.7723 MB / 1.236 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.8714, allocations: 0 / 1.236 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0007743/0.8722, allocations: 367.2 kB / 1.236 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.8727, allocations: 62.95 kB / 1.236 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003912/0.8766, allocations: 2.834 MB / 1.239 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.877, allocations: 0.8146 MB / 1.24 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001879/0.8772, allocations: 54.25 kB / 1.24 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.8773, allocations: 95.34 kB / 1.24 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of SimCode: time 2.01e-07/0.8773, allocations: 0 / 1.24 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03119/0.9085, allocations: 7.474 MB / 1.247 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.88, allocations: 0.9844 kB / 1.247 GB, free: 2.746 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