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.008429/0.008429, allocations: 98.45 kB / 15.73 MB, free: 6.059 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.001906/0.001906, allocations: 195.8 kB / 16.68 MB, free: 5.969 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.368/1.368, 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/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.234/2.234, allocations: 390.3 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 63.91 kB / 0.9504 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9441/0.9456, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005855/0.9515, allocations: 4.105 MB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003402/0.9549, allocations: 1.58 MB / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003042/0.9553, allocations: 7.062 kB / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001733/0.957, allocations: 0.5876 MB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007384/0.9577, allocations: 238.5 kB / 1.094 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007827/0.9585, allocations: 215.9 kB / 1.094 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001182/0.9597, allocations: 0.5471 MB / 1.095 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.961, allocations: 483.7 kB / 1.095 GB, free: 384 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000551/0.9616, allocations: 228.1 kB / 1.095 GB, free: 288 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007599/0.9624, allocations: 257.5 kB / 1.095 GB, free: 176 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.172e-05/0.9625, allocations: 35.22 kB / 1.096 GB, free: 176 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000567/0.9631, allocations: 166.1 kB / 1.096 GB, free: 124 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002367/0.9633, allocations: 149.1 kB / 1.096 GB, free: 64 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003685/0.9637, allocations: 199.2 kB / 1.096 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.9648, allocations: 0.5167 MB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.9648, allocations: 0 / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.154e-06/0.9648, allocations: 5.031 kB / 1.097 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.403e-05/0.9649, allocations: 0 / 1.097 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.001583/0.9665, allocations: 0.6812 MB / 1.097 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.9665, allocations: 9.594 kB / 1.097 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001032/0.9666, allocations: 72.64 kB / 1.097 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008353/0.9675, allocations: 110 kB / 1.097 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006592/0.9681, allocations: 310.6 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.9683, allocations: 51.12 kB / 1.098 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.886e-05/0.9684, allocations: 35.22 kB / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.9697, allocations: 0.5029 MB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.9697, allocations: 9.078 kB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.52e-05/0.9698, allocations: 15.33 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-05/0.9699, allocations: 32.8 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008687/0.9707, allocations: 374.9 kB / 1.099 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003314/0.9741, allocations: 2.204 MB / 1.101 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008817/0.975, allocations: 255.7 kB / 1.101 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000476/0.9755, allocations: 151.9 kB / 1.101 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.129e-05/0.9755, allocations: 7.25 kB / 1.101 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.879e-05/0.9756, allocations: 36.41 kB / 1.101 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=19): time 1.973e-06/0.9756, allocations: 4.938 kB / 1.101 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.002041/0.9776, allocations: 0.5721 MB / 1.102 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.9777, allocations: 53.5 kB / 1.102 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000475/0.9782, allocations: 224.1 kB / 1.102 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.9782, allocations: 34.86 kB / 1.102 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.9785, allocations: 211 kB / 1.102 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 9.315e-05/0.9786, allocations: 69.19 kB / 1.102 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.9788, allocations: 51.03 kB / 1.102 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002628/0.9791, allocations: 334.1 kB / 1.103 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.9794, allocations: 92.22 kB / 1.103 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005071/0.98, allocations: 185 kB / 1.103 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008256/0.9808, allocations: 277.7 kB / 1.103 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.9808, allocations: 5 kB / 1.103 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001129/0.9819, allocations: 374.9 kB / 1.104 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.982, allocations: 6.125 kB / 1.104 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.982, allocations: 2.688 kB / 1.104 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005941/0.9826, allocations: 114.9 kB / 1.104 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.9829, allocations: 52.61 kB / 1.104 GB, free: 10.67 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003999/0.9869, allocations: 3.043 MB / 1.107 GB, free: 7.762 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/0.9873, allocations: 35.33 kB / 1.107 GB, free: 7.742 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.498e-05/0.9873, allocations: 12.78 kB / 1.107 GB, free: 7.738 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004548/0.9878, allocations: 222.1 kB / 1.107 GB, free: 7.609 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003175/0.9881, allocations: 186.2 kB / 1.107 GB, free: 7.465 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000548/0.9887, allocations: 268.1 kB / 1.107 GB, free: 7.301 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.364e-06/0.9887, allocations: 0 / 1.107 GB, free: 7.301 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0009329/0.9896, allocations: 354.3 kB / 1.108 GB, free: 7.152 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.9897, allocations: 6.734 kB / 1.108 GB, free: 7.152 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.9897, allocations: 7 kB / 1.108 GB, free: 7.148 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003643/0.99, allocations: 74.3 kB / 1.108 GB, free: 7.133 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000273/0.9903, allocations: 61.11 kB / 1.108 GB, free: 7.121 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002274/0.9926, allocations: 1.604 MB / 1.109 GB, free: 5.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003293/0.993, allocations: 34.69 kB / 1.11 GB, free: 5.641 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.993, allocations: 9 kB / 1.11 GB, free: 5.641 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.0001983/0.9932, allocations: 202.6 kB / 1.11 GB, free: 5.441 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.406e-05/0.9933, allocations: 22.56 kB / 1.11 GB, free: 5.43 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.703e-05/0.9934, allocations: 34.09 kB / 1.11 GB, free: 5.406 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.9934, allocations: 2.062 kB / 1.11 GB, free: 5.406 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.9934, allocations: 8.5 kB / 1.11 GB, free: 5.398 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.9934, allocations: 2.328 kB / 1.11 GB, free: 5.398 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001796/0.9952, allocations: 0.8276 MB / 1.111 GB, free: 4.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.9952, allocations: 1.578 kB / 1.111 GB, free: 4.84 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001492/0.9954, allocations: 28.75 kB / 1.111 GB, free: 4.84 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004518/0.9958, allocations: 104.8 kB / 1.111 GB, free: 4.805 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.9959, allocations: 1.656 kB / 1.111 GB, free: 4.805 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003647/0.9995, allocations: 3.029 MB / 1.114 GB, free: 1.906 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.9996, allocations: 1 kB / 1.114 GB, free: 1.906 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009551/1.001, allocations: 410 kB / 1.114 GB, free: 1.66 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/1.001, allocations: 123.9 kB / 1.114 GB, free: 1.539 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.54e-05/1.001, allocations: 1.922 kB / 1.114 GB, free: 1.539 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/1.001, allocations: 11.81 kB / 1.114 GB, free: 1.535 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/1.001, allocations: 27.72 kB / 1.114 GB, free: 1.523 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/1.001, allocations: 12.83 kB / 1.114 GB, free: 1.516 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002203/1.001, allocations: 162.6 kB / 1.114 GB, free: 1.414 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.7e-07/1.001, allocations: 0 / 1.114 GB, free: 1.414 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008652/1.002, allocations: 168.9 kB / 1.115 GB, free: 1.371 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.001235/1.003, allocations: 0.9461 MB / 1.115 GB, free: 0.5938 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002181/1.006, allocations: 0.7598 MB / 1.116 GB, free: 144 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/1.006, allocations: 0 / 1.116 GB, free: 144 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008613/1.007, allocations: 381.1 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.0004933/1.007, allocations: 60.39 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.005182/1.012, allocations: 2.845 MB / 1.119 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005581/1.013, allocations: 0.806 MB / 1.12 GB, free: 13.18 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002466/1.013, allocations: 63.77 kB / 1.12 GB, free: 13.16 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/1.013, allocations: 88.19 kB / 1.12 GB, free: 13.09 MB / 0.8887 GB Notification: Performance of SimCode: time 5.11e-07/1.013, allocations: 0 / 1.12 GB, free: 13.09 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03732/1.051, allocations: 7.347 MB / 1.128 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.65, allocations: 16.44 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