Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Lines.Examples.RCModel,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_RCModel",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.001352/0.001352, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001716/0.001716, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.883/1.883, allocations: 292.6 MB / 0.5497 GB, free: 14.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005383/0.0005383, allocations: 16.8 kB / 0.6737 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2905, allocations: 116.3 MB / 0.7872 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005012/0.2956, allocations: 3.694 MB / 0.7908 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003029/0.2986, allocations: 1.724 MB / 0.7925 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002259/0.2989, allocations: 8 kB / 0.7925 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002297/0.2991, allocations: 71.52 kB / 0.7926 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005568/0.2997, allocations: 187.4 kB / 0.7928 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005885/0.3003, allocations: 183.6 kB / 0.793 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004702/0.3008, allocations: 359.2 kB / 0.7933 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005308/0.3013, allocations: 391.3 kB / 0.7937 GB, free: 5.25 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.3016, allocations: 175.4 kB / 0.7938 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003528/0.3019, allocations: 179.3 kB / 0.794 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.049e-05/0.302, allocations: 20 kB / 0.794 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003088/0.3023, allocations: 119.8 kB / 0.7941 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.3024, allocations: 123.6 kB / 0.7943 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.3025, allocations: 97.52 kB / 0.7944 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005675/0.3031, allocations: 447.1 kB / 0.7948 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3031, allocations: 3.938 kB / 0.7948 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.927e-06/0.3031, allocations: 4 kB / 0.7948 GB, free: 4.098 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.847e-06/0.3032, allocations: 3.938 kB / 0.7948 GB, free: 4.094 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001202/0.3044, allocations: 0.6704 MB / 0.7954 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.3044, allocations: 8.031 kB / 0.7955 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.3045, allocations: 74.53 kB / 0.7955 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.3056, allocations: 159.3 kB / 0.7957 GB, free: 3.129 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005098/0.3061, allocations: 325.4 kB / 0.796 GB, free: 2.77 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.105e-05/0.3061, allocations: 24.98 kB / 0.796 GB, free: 2.746 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.328e-05/0.3062, allocations: 35.98 kB / 0.796 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008079/0.307, allocations: 0.5236 MB / 0.7966 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.307, allocations: 7.938 kB / 0.7966 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.483e-05/0.3071, allocations: 16 kB / 0.7966 GB, free: 2.125 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.766e-05/0.3072, allocations: 32.64 kB / 0.7966 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005964/0.3078, allocations: 382.2 kB / 0.797 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002647/0.3104, allocations: 2.411 MB / 0.7993 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005142/0.3109, allocations: 266.8 kB / 0.7996 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.311, allocations: 3.953 kB / 0.7996 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.311, allocations: 34.56 kB / 0.7996 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=20): time 3.166e-06/0.311, allocations: 0 / 0.7996 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of matching and sorting (n=23): time 0.002184/0.3132, allocations: 1.121 MB / 0.8007 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.3133, allocations: 59.39 kB / 0.8008 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000315/0.3136, allocations: 296.4 kB / 0.8011 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.3136, allocations: 29.7 kB / 0.8011 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.3138, allocations: 235.6 kB / 0.8013 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 6.839e-05/0.3139, allocations: 82.84 kB / 0.8014 GB, free: 12.83 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.482e-05/0.3139, allocations: 8 kB / 0.8014 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.314, allocations: 338.8 kB / 0.8017 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.3142, allocations: 100.6 kB / 0.8018 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.3144, allocations: 183.8 kB / 0.802 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.3146, allocations: 133 kB / 0.8021 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3146, allocations: 4 kB / 0.8021 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007223/0.3154, allocations: 438.2 kB / 0.8025 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3154, allocations: 18.83 kB / 0.8026 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3154, allocations: 0 / 0.8026 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003514/0.3158, allocations: 90.5 kB / 0.8026 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.3161, allocations: 71.86 kB / 0.8027 GB, free: 11.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003306/0.3194, allocations: 4.103 MB / 0.8067 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002677/0.3197, allocations: 11.98 kB / 0.8067 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/0.3197, allocations: 15.94 kB / 0.8067 GB, free: 6.867 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002484/0.32, allocations: 185.2 kB / 0.8069 GB, free: 6.68 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.998e-05/0.32, allocations: 35.58 kB / 0.807 GB, free: 6.645 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.136e-05/0.3201, allocations: 38.31 kB / 0.807 GB, free: 6.605 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.3201, allocations: 7.938 kB / 0.807 GB, free: 6.598 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.3201, allocations: 0 / 0.807 GB, free: 6.598 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.3202, allocations: 4 kB / 0.807 GB, free: 6.594 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004813/0.3206, allocations: 397.3 kB / 0.8074 GB, free: 6.156 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3206, allocations: 0 / 0.8074 GB, free: 6.156 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.3208, allocations: 39.97 kB / 0.8074 GB, free: 6.117 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002864/0.3211, allocations: 86.5 kB / 0.8075 GB, free: 6.023 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.3212, allocations: 11.95 kB / 0.8075 GB, free: 6.012 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003313/0.3245, allocations: 4.099 MB / 0.8115 GB, free: 1.512 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3245, allocations: 0 / 0.8115 GB, free: 1.512 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009428/0.3255, allocations: 0.5547 MB / 0.8121 GB, free: 0.9336 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.3256, allocations: 120.8 kB / 0.8122 GB, free: 0.7969 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.796e-05/0.3257, allocations: 8 kB / 0.8122 GB, free: 0.7891 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.3259, allocations: 15.94 kB / 0.8122 GB, free: 0.7734 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.341e-05/0.326, allocations: 19.92 kB / 0.8122 GB, free: 0.7539 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.326, allocations: 12.3 kB / 0.8122 GB, free: 0.7422 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002271/0.3262, allocations: 207.1 kB / 0.8124 GB, free: 0.543 MB / 0.6231 GB Notification: Performance of sort global known variables: time 4.1e-07/0.3263, allocations: 0 / 0.8124 GB, free: 0.543 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005247/0.3268, allocations: 96 kB / 0.8125 GB, free: 460 kB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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): 15 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001091/0.3279, allocations: 1.099 MB / 0.8136 GB, free: 15.32 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0008637/0.3288, allocations: 0.6057 MB / 0.8142 GB, free: 14.67 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3288, allocations: 0 / 0.8142 GB, free: 14.67 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0005951/0.3294, allocations: 483.4 kB / 0.8146 GB, free: 14.16 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004579/0.3298, allocations: 72.53 kB / 0.8147 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003767/0.3336, allocations: 3.713 MB / 0.8183 GB, free: 10.28 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000598/0.3342, allocations: 0.8386 MB / 0.8192 GB, free: 9.414 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002491/0.3345, allocations: 58.92 kB / 0.8192 GB, free: 9.355 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.3347, allocations: 115.4 kB / 0.8193 GB, free: 9.242 MB / 0.6387 GB Notification: Performance of SimCode: time 1.002e-06/0.3347, allocations: 4 kB / 0.8193 GB, free: 9.238 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02246/0.3572, allocations: 7.086 MB / 0.8262 GB, free: 2.336 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002218/0.3574, allocations: 195.8 kB / 0.8264 GB, free: 2.094 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.11/2.467, allocations: 0 / 0.8264 GB, free: 2.094 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) Environment - environmentSimulation: