Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DCLine,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine",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.001206/0.001212, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001645/0.001646, allocations: 168.7 kB / 15.95 MB, free: 204 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.488/1.488, allocations: 223.3 MB / 240 MB, free: 5.383 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.555/2.555, allocations: 390.4 MB / 0.6655 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003682, allocations: 8 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8093/0.8097, allocations: 142.3 MB / 0.9538 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.007049/0.8168, allocations: 5.585 MB / 0.9593 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.006545/0.8234, allocations: 4.218 MB / 0.9634 GB, free: 500 kB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.8246, allocations: 21.56 kB / 0.9634 GB, free: 492 kB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000698/0.8253, allocations: 140.2 kB / 0.9636 GB, free: 372 kB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.002824/0.8282, allocations: 0.6278 MB / 0.9642 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.8293, allocations: 239.2 kB / 0.9644 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002076/0.8314, allocations: 1.198 MB / 0.9656 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007372/0.8322, allocations: 495 kB / 0.9661 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006356/0.8328, allocations: 375.4 kB / 0.9664 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008243/0.8336, allocations: 472.4 kB / 0.9669 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 9.352e-05/0.8337, allocations: 33.25 kB / 0.9669 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005187/0.8343, allocations: 146.5 kB / 0.967 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002228/0.8345, allocations: 208.5 kB / 0.9672 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.8347, allocations: 162.9 kB / 0.9674 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000849/0.8356, allocations: 0.8075 MB / 0.9682 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.8356, allocations: 1.156 kB / 0.9682 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.516e-06/0.8356, allocations: 3.984 kB / 0.9682 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.081e-05/0.8356, allocations: 0 / 0.9682 GB, free: 13.36 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001774/0.8374, allocations: 0.9845 MB / 0.9691 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.8374, allocations: 8.406 kB / 0.9692 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001453/0.8376, allocations: 100.3 kB / 0.9693 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003043/0.8406, allocations: 0.6539 MB / 0.9699 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009682/0.8416, allocations: 0.5215 MB / 0.9704 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.103e-05/0.8417, allocations: 37.53 kB / 0.9704 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.635e-05/0.8418, allocations: 53.27 kB / 0.9705 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.8438, allocations: 1.018 MB / 0.9715 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.8439, allocations: 1.312 kB / 0.9715 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.535e-05/0.8439, allocations: 26.62 kB / 0.9715 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.612e-05/0.844, allocations: 51.66 kB / 0.9716 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002321/0.8463, allocations: 1.01 MB / 0.9725 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004493/0.8509, allocations: 3.52 MB / 0.976 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.8523, allocations: 0.5195 MB / 0.9765 GB, free: 7.109 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005269/0.8528, allocations: 245.6 kB / 0.9767 GB, free: 6.992 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.282e-05/0.8528, allocations: 7.562 kB / 0.9767 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.8529, allocations: 32.91 kB / 0.9768 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/0.8529, allocations: 0 / 0.9768 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43): time 0.006569/0.8595, allocations: 2.227 MB / 0.9789 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.8595, allocations: 56.97 kB / 0.979 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007033/0.8602, allocations: 0.5603 MB / 0.9795 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.658e-05/0.8603, allocations: 33.7 kB / 0.9796 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002519/0.8606, allocations: 364.1 kB / 0.9799 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.8607, allocations: 141.9 kB / 0.9801 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.8607, allocations: 8 kB / 0.9801 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.8609, allocations: 374.8 kB / 0.9804 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006313/0.8615, allocations: 280.8 kB / 0.9807 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00065/0.8622, allocations: 377.8 kB / 0.981 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006492/0.8629, allocations: 313.6 kB / 0.9813 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.8629, allocations: 0 / 0.9813 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002194/0.8651, allocations: 0.9783 MB / 0.9823 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001477/0.8652, allocations: 184.3 kB / 0.9825 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.8652, allocations: 0 / 0.9825 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/0.8663, allocations: 280.8 kB / 0.9827 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005858/0.8669, allocations: 123.8 kB / 0.9829 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007308/0.8742, allocations: 8.477 MB / 0.9911 GB, free: 8.418 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009051/0.8752, allocations: 60 kB / 0.9912 GB, free: 8.359 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/0.8752, allocations: 16 kB / 0.9912 GB, free: 8.344 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.8753, allocations: 4 kB / 0.9912 GB, free: 8.34 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002475/0.8777, allocations: 1.086 MB / 0.9923 GB, free: 7.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.8778, allocations: 3.938 kB / 0.9923 GB, free: 7.176 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007756/0.8786, allocations: 213.1 kB / 0.9925 GB, free: 6.949 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006357/0.8792, allocations: 139.8 kB / 0.9926 GB, free: 6.812 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006636/0.8859, allocations: 8.16 MB / 1.001 GB, free: 13.86 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008177/0.8867, allocations: 56.02 kB / 1.001 GB, free: 13.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/0.8868, allocations: 12 kB / 1.001 GB, free: 13.79 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 41 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005333/0.8873, allocations: 320.9 kB / 1.001 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.8874, allocations: 71.25 kB / 1.001 GB, free: 13.39 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001561/0.8876, allocations: 74.38 kB / 1.001 GB, free: 13.32 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.8876, allocations: 7.953 kB / 1.001 GB, free: 13.31 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/0.8876, allocations: 0 / 1.001 GB, free: 13.31 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.8877, allocations: 7.984 kB / 1.001 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008848/0.8885, allocations: 0.6494 MB / 1.002 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.8886, allocations: 0 / 1.002 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.889, allocations: 99.84 kB / 1.002 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008968/0.8899, allocations: 256.9 kB / 1.002 GB, free: 12.23 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.893e-05/0.89, allocations: 15.98 kB / 1.002 GB, free: 12.22 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006362/0.8964, allocations: 8.412 MB / 1.01 GB, free: 3.004 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.8964, allocations: 8.062 kB / 1.01 GB, free: 2.996 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/0.8986, allocations: 0.9599 MB / 1.011 GB, free: 2 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003398/0.899, allocations: 184.2 kB / 1.011 GB, free: 1.801 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.814e-05/0.8991, allocations: 8 kB / 1.011 GB, free: 1.793 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004583/0.8996, allocations: 51.94 kB / 1.011 GB, free: 1.742 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.8997, allocations: 43.91 kB / 1.012 GB, free: 1.699 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.8998, allocations: 11.98 kB / 1.012 GB, free: 1.688 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0005345/0.9003, allocations: 403.1 kB / 1.012 GB, free: 1.301 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9003, allocations: 0 / 1.012 GB, free: 1.301 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001506/0.9018, allocations: 296 kB / 1.012 GB, free: 1.012 MB / 0.7637 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 (31): * Single equations (assignments): 25 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002384/0.9042, allocations: 1.505 MB / 1.014 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.003678/0.9079, allocations: 2.419 MB / 1.016 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.9079, allocations: 0 / 1.016 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.9092, allocations: 1.035 MB / 1.017 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.9104, allocations: 214.1 kB / 1.017 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007446/0.9178, allocations: 4.351 MB / 1.022 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006478/0.9185, allocations: 0.9821 MB / 1.022 GB, free: 6.094 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0006871/0.9192, allocations: 157.3 kB / 1.023 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003144/0.9195, allocations: 231.4 kB / 1.023 GB, free: 5.711 MB / 0.7794 GB Notification: Performance of SimCode: time 1.443e-06/0.9195, allocations: 0 / 1.023 GB, free: 5.711 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03711/0.9567, allocations: 18.42 MB / 1.041 GB, free: 3.598 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/0.9569, allocations: 209.8 kB / 1.041 GB, free: 3.359 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.2/3.157, allocations: 0 / 1.041 GB, free: 3.359 MB / 0.795 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat does not exist to compare? outputFormat=mat