Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance",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.0009751/0.0009751, allocations: 99.86 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.0009408/0.0009408, 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.436/1.436, allocations: 223.2 MB / 239.9 MB, free: 5.457 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.467/2.467, allocations: 390.3 MB / 0.6653 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003455/0.0003455, allocations: 8 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7956/0.796, allocations: 142.3 MB / 0.9536 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003167/0.7992, allocations: 2.584 MB / 0.9561 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001651/0.8009, allocations: 1.222 MB / 0.9573 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.801, allocations: 9.5 kB / 0.9573 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.8012, allocations: 39.72 kB / 0.9574 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.8015, allocations: 93.12 kB / 0.9574 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.8017, allocations: 104 kB / 0.9575 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000212/0.802, allocations: 170.6 kB / 0.9577 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.8022, allocations: 207.4 kB / 0.9579 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.906e-05/0.8023, allocations: 85.56 kB / 0.958 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.8025, allocations: 98.41 kB / 0.9581 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.8026, allocations: 10.78 kB / 0.9581 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001839/0.8028, allocations: 78.58 kB / 0.9582 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.801e-05/0.8028, allocations: 65.19 kB / 0.9582 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.259e-05/0.8029, allocations: 57.48 kB / 0.9583 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002545/0.8032, allocations: 251 kB / 0.9585 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.8032, allocations: 3.938 kB / 0.9585 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.434e-06/0.8032, allocations: 0 / 0.9585 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.8032, allocations: 4.844 kB / 0.9585 GB, free: 4.336 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000665/0.8039, allocations: 492.1 kB / 0.959 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.8039, allocations: 8.625 kB / 0.959 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.041e-05/0.804, allocations: 54.61 kB / 0.9591 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000587/0.8046, allocations: 85.58 kB / 0.9591 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.8048, allocations: 246.8 kB / 0.9594 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.8049, allocations: 16.47 kB / 0.9594 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.8049, allocations: 15.69 kB / 0.9594 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003855/0.8053, allocations: 307.1 kB / 0.9597 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.8053, allocations: 0 / 0.9597 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.8053, allocations: 6.125 kB / 0.9597 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/0.8054, allocations: 17.56 kB / 0.9597 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000272/0.8056, allocations: 202.8 kB / 0.9599 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.8068, allocations: 1.457 MB / 0.9613 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.807, allocations: 176 kB / 0.9615 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.807, allocations: 1.25 kB / 0.9615 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.491e-05/0.8071, allocations: 31.56 kB / 0.9615 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.8071, allocations: 0 / 0.9615 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004321/0.8075, allocations: 241.5 kB / 0.9618 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.097e-05/0.8075, allocations: 52.53 kB / 0.9618 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.8077, allocations: 191.4 kB / 0.962 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.8077, allocations: 26.77 kB / 0.962 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.088e-05/0.8078, allocations: 167.6 kB / 0.9622 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.8078, allocations: 27.55 kB / 0.9622 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.102e-06/0.8078, allocations: 1 kB / 0.9622 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.865e-05/0.8079, allocations: 329.9 kB / 0.9625 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.882e-05/0.808, allocations: 38.2 kB / 0.9626 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.05e-05/0.8081, allocations: 102 kB / 0.9627 GB, free: 496 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.883e-05/0.8081, allocations: 48.8 kB / 0.9627 GB, free: 472 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.8082, allocations: 1 kB / 0.9627 GB, free: 472 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002688/0.8084, allocations: 198.5 kB / 0.9629 GB, free: 344 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.8085, allocations: 6.406 kB / 0.9629 GB, free: 344 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.8085, allocations: 2.625 kB / 0.9629 GB, free: 344 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001507/0.8086, allocations: 22.12 kB / 0.9629 GB, free: 332 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.8087, allocations: 33.67 kB / 0.963 GB, free: 320 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009643/0.8097, allocations: 1.32 MB / 0.9642 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.8099, allocations: 13.69 kB / 0.9643 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.8099, allocations: 5.906 kB / 0.9643 GB, free: 14.95 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001482/0.81, allocations: 158.4 kB / 0.9644 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.71e-05/0.8101, allocations: 15.12 kB / 0.9644 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.8101, allocations: 21.39 kB / 0.9645 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.8101, allocations: 1 kB / 0.9645 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.8101, allocations: 1.125 kB / 0.9645 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.8101, allocations: 0 / 0.9645 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005215/0.8107, allocations: 448.4 kB / 0.9649 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.8107, allocations: 1.031 kB / 0.9649 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.586e-05/0.8107, allocations: 10 kB / 0.9649 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.616e-05/0.8108, allocations: 23.09 kB / 0.9649 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-06/0.8108, allocations: 1.375 kB / 0.9649 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008794/0.8117, allocations: 1.321 MB / 0.9662 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.8117, allocations: 1.562 kB / 0.9662 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002054/0.8119, allocations: 211.9 kB / 0.9664 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.55e-05/0.812, allocations: 98.22 kB / 0.9665 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.812, allocations: 5.188 kB / 0.9665 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.8121, allocations: 11.89 kB / 0.9665 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.386e-05/0.8122, allocations: 10.12 kB / 0.9665 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.802e-06/0.8122, allocations: 2.625 kB / 0.9665 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001192/0.8123, allocations: 145 kB / 0.9667 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8123, allocations: 1.125 kB / 0.9667 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003359/0.8127, allocations: 47.91 kB / 0.9667 GB, free: 12.55 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004466/0.8131, allocations: 0.7459 MB / 0.9674 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003369/0.8135, allocations: 209.8 kB / 0.9676 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.8135, allocations: 1.594 kB / 0.9676 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.8136, allocations: 148.5 kB / 0.9678 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.8139, allocations: 39.16 kB / 0.9678 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.8157, allocations: 2.38 MB / 0.9702 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.816, allocations: 0.753 MB / 0.9709 GB, free: 8.613 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.811e-05/0.8161, allocations: 21.61 kB / 0.9709 GB, free: 8.602 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.398e-05/0.8162, allocations: 55.28 kB / 0.971 GB, free: 8.555 MB / 0.7325 GB Notification: Performance of SimCode: time 3.01e-07/0.8162, allocations: 0 / 0.971 GB, free: 8.555 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01474/0.8309, allocations: 3.321 MB / 0.9742 GB, free: 7.016 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002925/0.8313, allocations: 201.6 kB / 0.9744 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.667/2.499, allocations: 0 / 0.9744 GB, free: 6.773 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat does not exist to compare? outputFormat=mat