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.001002/0.001002, allocations: 90.75 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.000977/0.0009773, 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.449/1.449, allocations: 223.3 MB / 240 MB, free: 5.348 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.574/2.574, allocations: 390.4 MB / 0.6655 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003357, allocations: 12 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.778/0.7783, allocations: 142.3 MB / 0.9538 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003196/0.7816, allocations: 2.656 MB / 0.9564 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001699/0.7833, allocations: 1.238 MB / 0.9577 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.7834, allocations: 7.625 kB / 0.9577 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.7836, allocations: 37.52 kB / 0.9577 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003275/0.784, allocations: 107 kB / 0.9578 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.7843, allocations: 107 kB / 0.9579 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.00034/0.7846, allocations: 346.6 kB / 0.9582 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002689/0.7849, allocations: 212.4 kB / 0.9584 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.785, allocations: 96.56 kB / 0.9585 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.7854, allocations: 132.5 kB / 0.9586 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.087e-05/0.7854, allocations: 9.844 kB / 0.9587 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.7856, allocations: 90.09 kB / 0.9587 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.747e-05/0.7857, allocations: 68.92 kB / 0.9588 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.329e-05/0.7857, allocations: 62.77 kB / 0.9589 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002753/0.786, allocations: 250.9 kB / 0.9591 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.786, allocations: 1.375 kB / 0.9591 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.786, allocations: 0 / 0.9591 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.786, allocations: 0 / 0.9591 GB, free: 4.07 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.0006571/0.7867, allocations: 492.9 kB / 0.9596 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.7868, allocations: 8.25 kB / 0.9596 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.71e-05/0.7868, allocations: 58.78 kB / 0.9596 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005762/0.7874, allocations: 77.03 kB / 0.9597 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.7877, allocations: 249.5 kB / 0.96 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.7877, allocations: 11.25 kB / 0.96 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.942e-05/0.7877, allocations: 16.38 kB / 0.96 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004266/0.7882, allocations: 303.7 kB / 0.9603 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.7882, allocations: 1.344 kB / 0.9603 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.7882, allocations: 10.77 kB / 0.9603 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.012e-05/0.7883, allocations: 21.27 kB / 0.9603 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000302/0.7886, allocations: 190.2 kB / 0.9605 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.7898, allocations: 1.46 MB / 0.9619 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.79, allocations: 184.8 kB / 0.9621 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.801e-05/0.7901, allocations: 31.38 kB / 0.9621 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.7901, allocations: 0.7188 kB / 0.9621 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.7901, allocations: 40.52 kB / 0.9622 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.933e-06/0.7901, allocations: 0 / 0.9622 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004469/0.7906, allocations: 229.8 kB / 0.9624 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.7906, allocations: 52.38 kB / 0.9624 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.7908, allocations: 200 kB / 0.9626 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.7908, allocations: 26.7 kB / 0.9626 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.248e-05/0.7909, allocations: 159.7 kB / 0.9628 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.7909, allocations: 26.86 kB / 0.9628 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-06/0.7909, allocations: 4.938 kB / 0.9628 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.886e-05/0.791, allocations: 326.7 kB / 0.9631 GB, free: 336 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.125e-05/0.7911, allocations: 37.83 kB / 0.9632 GB, free: 316 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.251e-05/0.7912, allocations: 102.2 kB / 0.9633 GB, free: 208 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.533e-05/0.7913, allocations: 56.92 kB / 0.9633 GB, free: 176 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.7913, allocations: 0.9688 kB / 0.9633 GB, free: 176 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000289/0.7916, allocations: 186.6 kB / 0.9635 GB, free: 60 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.7916, allocations: 12.19 kB / 0.9635 GB, free: 56 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.7916, allocations: 1.938 kB / 0.9635 GB, free: 56 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001561/0.7918, allocations: 29.88 kB / 0.9635 GB, free: 36 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.7919, allocations: 29.83 kB / 0.9636 GB, free: 28 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00102/0.7929, allocations: 1.314 MB / 0.9649 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.7931, allocations: 16.78 kB / 0.9649 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.7931, allocations: 6.75 kB / 0.9649 GB, free: 14.66 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.0001384/0.7932, allocations: 149.5 kB / 0.965 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.773e-05/0.7933, allocations: 23.25 kB / 0.965 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.7933, allocations: 21.05 kB / 0.9651 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.7933, allocations: 1.062 kB / 0.9651 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.7933, allocations: 1.188 kB / 0.9651 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.7933, allocations: 0 / 0.9651 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004979/0.7938, allocations: 445.1 kB / 0.9655 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.7938, allocations: 1.281 kB / 0.9655 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.892e-05/0.7939, allocations: 10.25 kB / 0.9655 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.78e-05/0.794, allocations: 25.91 kB / 0.9655 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.794, allocations: 1.25 kB / 0.9655 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.7951, allocations: 1.31 MB / 0.9668 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/0.7951, allocations: 7.953 kB / 0.9668 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003051/0.7954, allocations: 207.4 kB / 0.967 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.742e-05/0.7955, allocations: 99.06 kB / 0.9671 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.7955, allocations: 5.344 kB / 0.9671 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.7957, allocations: 12.05 kB / 0.9671 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.552e-05/0.7957, allocations: 6.328 kB / 0.9671 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.7957, allocations: 2 kB / 0.9671 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001276/0.7958, allocations: 147.7 kB / 0.9673 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.81e-07/0.7958, allocations: 3.938 kB / 0.9673 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003713/0.7962, allocations: 47.31 kB / 0.9673 GB, free: 12.27 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.0006035/0.7968, allocations: 0.7452 MB / 0.968 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003699/0.7972, allocations: 211 kB / 0.9682 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.7972, allocations: 0 / 0.9682 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.7974, allocations: 153.5 kB / 0.9684 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.7978, allocations: 34.36 kB / 0.9684 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.7996, allocations: 1.029 MB / 0.9694 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.8, allocations: 0.7472 MB / 0.9702 GB, free: 9.695 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001007/0.8001, allocations: 28.78 kB / 0.9702 GB, free: 9.68 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.42e-05/0.8001, allocations: 49.52 kB / 0.9702 GB, free: 9.637 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.8002, allocations: 0 / 0.9702 GB, free: 9.637 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01516/0.8153, allocations: 3.338 MB / 0.9735 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/0.8155, allocations: 204.5 kB / 0.9737 GB, free: 7.848 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.837/2.653, allocations: 0 / 0.9737 GB, free: 7.848 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