Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_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.000935/0.0009351, allocations: 99.55 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.0009654/0.0009654, allocations: 177.3 kB / 15.94 MB, free: 228 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.44/1.44, allocations: 223.2 MB / 239.9 MB, free: 5.305 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.598/2.598, allocations: 390.3 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003291/0.0003292, allocations: 11.98 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7831/0.7834, allocations: 142.3 MB / 0.9536 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.004132/0.7876, allocations: 3.683 MB / 0.9572 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002584/0.7902, allocations: 1.717 MB / 0.9589 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002215/0.7905, allocations: 13.47 kB / 0.9589 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002248/0.7907, allocations: 73.86 kB / 0.9589 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004938/0.7912, allocations: 192 kB / 0.9591 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005097/0.7917, allocations: 179.3 kB / 0.9593 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000428/0.7922, allocations: 365 kB / 0.9596 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003935/0.7926, allocations: 390.2 kB / 0.96 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.7927, allocations: 173.8 kB / 0.9602 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003043/0.7931, allocations: 181.4 kB / 0.9604 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.251e-05/0.7931, allocations: 20.62 kB / 0.9604 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002934/0.7934, allocations: 124.5 kB / 0.9605 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.7935, allocations: 112.6 kB / 0.9606 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.36e-05/0.7936, allocations: 102.3 kB / 0.9607 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004383/0.7941, allocations: 452.9 kB / 0.9611 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.7941, allocations: 0 / 0.9611 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7941, allocations: 0 / 0.9611 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.7941, allocations: 0.75 kB / 0.9611 GB, free: 2.359 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001018/0.7951, allocations: 0.6621 MB / 0.9618 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.7952, allocations: 9.656 kB / 0.9618 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.983e-05/0.7952, allocations: 75.98 kB / 0.9619 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001012/0.7963, allocations: 162.5 kB / 0.962 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.7967, allocations: 328.2 kB / 0.9623 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.7967, allocations: 22.09 kB / 0.9624 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.114e-05/0.7968, allocations: 33.94 kB / 0.9624 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007447/0.7976, allocations: 0.5256 MB / 0.9629 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.7976, allocations: 1.781 kB / 0.9629 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.113e-05/0.7976, allocations: 16.77 kB / 0.9629 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.193e-05/0.7977, allocations: 30.61 kB / 0.9629 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005479/0.7982, allocations: 388.4 kB / 0.9633 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003259/0.8015, allocations: 2.414 MB / 0.9657 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007387/0.8023, allocations: 264.8 kB / 0.9659 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.8023, allocations: 6.047 kB / 0.9659 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.982e-05/0.8024, allocations: 40.75 kB / 0.966 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 2.334e-06/0.8024, allocations: 0 / 0.966 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.003103/0.8055, allocations: 1.117 MB / 0.9671 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.8056, allocations: 62.39 kB / 0.9671 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004907/0.8061, allocations: 293.9 kB / 0.9674 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.842e-05/0.8061, allocations: 30.67 kB / 0.9674 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.8063, allocations: 229.9 kB / 0.9676 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.706e-05/0.8064, allocations: 85.02 kB / 0.9677 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.836e-05/0.8065, allocations: 13.88 kB / 0.9677 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001855/0.8067, allocations: 337.8 kB / 0.9681 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/0.8069, allocations: 103.9 kB / 0.9682 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002831/0.8072, allocations: 186.1 kB / 0.9683 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.8074, allocations: 138.8 kB / 0.9685 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.8074, allocations: 4.984 kB / 0.9685 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009098/0.8083, allocations: 434.1 kB / 0.9689 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.8084, allocations: 13.66 kB / 0.9689 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.8084, allocations: 2.938 kB / 0.9689 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004032/0.8088, allocations: 98.69 kB / 0.969 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003032/0.8091, allocations: 68.53 kB / 0.9691 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003329/0.8125, allocations: 4.096 MB / 0.9731 GB, free: 7.727 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/0.8128, allocations: 16.2 kB / 0.9731 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.8128, allocations: 9.719 kB / 0.9731 GB, free: 7.715 MB / 0.7325 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.0002879/0.8131, allocations: 183.6 kB / 0.9733 GB, free: 7.555 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.702e-05/0.8132, allocations: 31.41 kB / 0.9733 GB, free: 7.539 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.197e-05/0.8133, allocations: 42.06 kB / 0.9733 GB, free: 7.508 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.8133, allocations: 6.406 kB / 0.9733 GB, free: 7.504 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.8133, allocations: 1.188 kB / 0.9733 GB, free: 7.504 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.8133, allocations: 1.219 kB / 0.9733 GB, free: 7.504 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005457/0.8139, allocations: 400.3 kB / 0.9737 GB, free: 7.164 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.8139, allocations: 5.5 kB / 0.9737 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.8141, allocations: 38.88 kB / 0.9738 GB, free: 7.148 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003226/0.8144, allocations: 93.89 kB / 0.9739 GB, free: 7.086 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.8145, allocations: 5.312 kB / 0.9739 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003601/0.8181, allocations: 4.094 MB / 0.9779 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.8181, allocations: 4.062 kB / 0.9779 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.8191, allocations: 0.5504 MB / 0.9784 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001973/0.8193, allocations: 124.6 kB / 0.9785 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.934e-05/0.8194, allocations: 9.875 kB / 0.9785 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.8196, allocations: 19.11 kB / 0.9786 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.507e-05/0.8197, allocations: 11.8 kB / 0.9786 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/0.8197, allocations: 9.031 kB / 0.9786 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003097/0.82, allocations: 208.3 kB / 0.9788 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of sort global known variables: time 4.81e-07/0.82, allocations: 0 / 0.9788 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006012/0.8206, allocations: 98.72 kB / 0.9789 GB, free: 2.238 MB / 0.7325 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.001163/0.8218, allocations: 1.098 MB / 0.9799 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009597/0.8228, allocations: 0.6111 MB / 0.9805 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.8228, allocations: 2.031 kB / 0.9805 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00058/0.8234, allocations: 484.1 kB / 0.981 GB, free: 436 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004814/0.8239, allocations: 73.09 kB / 0.9811 GB, free: 396 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004281/0.8282, allocations: 3.697 MB / 0.9847 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.8287, allocations: 0.8428 MB / 0.9855 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002751/0.829, allocations: 66.92 kB / 0.9856 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.8291, allocations: 111.1 kB / 0.9857 GB, free: 12.4 MB / 0.7481 GB Notification: Performance of SimCode: time 2.335e-06/0.8291, allocations: 0 / 0.9857 GB, free: 12.4 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.8507, allocations: 7.084 MB / 0.9926 GB, free: 6.633 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/0.851, allocations: 209.7 kB / 0.9928 GB, free: 6.379 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/2.605, allocations: 3.938 kB / 0.9928 GB, free: 6.375 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat does not exist to compare? outputFormat=mat