Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.VariableLoad,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Loads_Examples_VariableLoad",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.0008715/0.0008716, allocations: 91.61 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.0009221/0.0009225, 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.409/1.409, allocations: 223.3 MB / 240 MB, free: 5.422 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.473/2.473, allocations: 390.4 MB / 0.6655 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003337/0.0003337, allocations: 12 kB / 0.8149 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8313/0.8316, allocations: 142.3 MB / 0.9538 GB, free: 8.297 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.003734/0.8354, allocations: 3.372 MB / 0.9571 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002138/0.8376, allocations: 1.658 MB / 0.9588 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.8377, allocations: 5.406 kB / 0.9588 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001909/0.8379, allocations: 59.66 kB / 0.9588 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003905/0.8383, allocations: 183.3 kB / 0.959 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000459/0.8388, allocations: 200.2 kB / 0.9592 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005226/0.8393, allocations: 0.5578 MB / 0.9597 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/0.8397, allocations: 343 kB / 0.9601 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.8399, allocations: 156.4 kB / 0.9602 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003364/0.8402, allocations: 224.4 kB / 0.9604 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.306e-05/0.8403, allocations: 16.59 kB / 0.9604 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001856/0.8405, allocations: 85.38 kB / 0.9605 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.5e-05/0.8406, allocations: 108.9 kB / 0.9606 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.418e-05/0.8406, allocations: 85.14 kB / 0.9607 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003248/0.841, allocations: 367 kB / 0.9611 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.841, allocations: 0 / 0.9611 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.483e-06/0.841, allocations: 4 kB / 0.9611 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.545e-06/0.841, allocations: 1.188 kB / 0.9611 GB, free: 2.867 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0008226/0.8418, allocations: 0.6062 MB / 0.9617 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.8419, allocations: 10.16 kB / 0.9617 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.77e-05/0.8419, allocations: 70.7 kB / 0.9617 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004939/0.8424, allocations: 85.56 kB / 0.9618 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000278/0.8427, allocations: 283.9 kB / 0.9621 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.8428, allocations: 24.58 kB / 0.9621 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.264e-05/0.8428, allocations: 22.56 kB / 0.9621 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007317/0.8435, allocations: 0.489 MB / 0.9626 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.8436, allocations: 8.969 kB / 0.9626 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.8436, allocations: 15.92 kB / 0.9626 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.998e-05/0.8437, allocations: 43.72 kB / 0.9627 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006823/0.8444, allocations: 381.1 kB / 0.963 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.8462, allocations: 2.046 MB / 0.965 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000633/0.8469, allocations: 222.5 kB / 0.9652 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.8473, allocations: 172.5 kB / 0.9654 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.8473, allocations: 0.9375 kB / 0.9654 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.8473, allocations: 40.66 kB / 0.9654 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=18): time 1.463e-06/0.8473, allocations: 0 / 0.9654 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18): time 0.001058/0.8484, allocations: 462.1 kB / 0.9659 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.8485, allocations: 53.97 kB / 0.9659 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/0.8488, allocations: 256.1 kB / 0.9662 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.7e-05/0.8488, allocations: 30.83 kB / 0.9662 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.849, allocations: 211 kB / 0.9664 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.302e-05/0.849, allocations: 67.28 kB / 0.9665 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.422e-05/0.8491, allocations: 5.312 kB / 0.9665 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.8492, allocations: 328.4 kB / 0.9668 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002579/0.8495, allocations: 98.17 kB / 0.9669 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003311/0.8498, allocations: 217.3 kB / 0.9671 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.8501, allocations: 131.4 kB / 0.9672 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.8501, allocations: 5.469 kB / 0.9672 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007832/0.8509, allocations: 373.7 kB / 0.9676 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001505/0.8511, allocations: 201.3 kB / 0.9678 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.8511, allocations: 3 kB / 0.9678 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001974/0.8513, allocations: 36 kB / 0.9678 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003033/0.8516, allocations: 70.08 kB / 0.9679 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.8528, allocations: 1.342 MB / 0.9692 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.8531, allocations: 52.42 kB / 0.9692 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.465e-05/0.8531, allocations: 14.89 kB / 0.9693 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.112e-06/0.8531, allocations: 3.219 kB / 0.9693 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000594/0.8537, allocations: 299.4 kB / 0.9695 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.8537, allocations: 7.188 kB / 0.9695 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.196e-06/0.8537, allocations: 10.27 kB / 0.9696 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002597/0.854, allocations: 72.64 kB / 0.9696 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.854, allocations: 9.125 kB / 0.9696 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/0.8542, allocations: 51.14 kB / 0.9697 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.8543, allocations: 14.88 kB / 0.9697 GB, free: 11.71 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 31 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002242/0.8545, allocations: 242.7 kB / 0.9699 GB, free: 11.49 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.448e-05/0.8545, allocations: 23.91 kB / 0.97 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.453e-05/0.8546, allocations: 33.14 kB / 0.97 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.8546, allocations: 6.078 kB / 0.97 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.8546, allocations: 1 kB / 0.97 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.8546, allocations: 3.984 kB / 0.97 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.8559, allocations: 0.7734 MB / 0.9708 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.8559, allocations: 1 kB / 0.9708 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001869/0.8561, allocations: 42.72 kB / 0.9708 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001049/0.8562, allocations: 32.86 kB / 0.9708 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.8562, allocations: 2.281 kB / 0.9708 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.8573, allocations: 1.321 MB / 0.9721 GB, free: 9.426 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.8573, allocations: 1.281 kB / 0.9721 GB, free: 9.426 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006258/0.8579, allocations: 391.7 kB / 0.9725 GB, free: 9.156 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.8581, allocations: 120.9 kB / 0.9726 GB, free: 9.031 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.8581, allocations: 6.719 kB / 0.9726 GB, free: 9.027 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.8583, allocations: 16.2 kB / 0.9726 GB, free: 9.023 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.183e-05/0.8583, allocations: 20.03 kB / 0.9726 GB, free: 9.012 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.8584, allocations: 4.156 kB / 0.9727 GB, free: 9.012 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001787/0.8585, allocations: 185.5 kB / 0.9728 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8586, allocations: 1.031 kB / 0.9728 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006297/0.8592, allocations: 143.9 kB / 0.973 GB, free: 8.848 MB / 0.7325 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 (18): * Single equations (assignments): 17 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001012/0.8602, allocations: 0.925 MB / 0.9739 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001044/0.8613, allocations: 0.5047 MB / 0.9744 GB, free: 7.77 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.8613, allocations: 5.094 kB / 0.9744 GB, free: 7.766 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000339/0.8616, allocations: 222.7 kB / 0.9746 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000482/0.8621, allocations: 70.33 kB / 0.9746 GB, free: 7.57 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002814/0.8649, allocations: 1.715 MB / 0.9763 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004002/0.8654, allocations: 0.8021 MB / 0.9771 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002397/0.8656, allocations: 65.61 kB / 0.9772 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.8657, allocations: 88.75 kB / 0.9773 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of SimCode: time 3.898e-06/0.8658, allocations: 1.188 kB / 0.9773 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01744/0.8832, allocations: 5.698 MB / 0.9828 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/0.8834, allocations: 214.9 kB / 0.983 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.719, allocations: 0 / 0.983 GB, free: 1.398 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_VariableLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat does not exist to compare? outputFormat=mat