Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_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.001399/0.001399, allocations: 100.1 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.001627/0.001627, 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 4.0.0+maint.om/package.mo): time 2.528/2.528, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.677/4.677, allocations: 409.2 MB / 0.6838 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005634/0.0005638, allocations: 8 kB / 0.8375 GB, free: 6.539 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.308/1.309, allocations: 146.8 MB / 0.9809 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005949/1.315, allocations: 2.59 MB / 0.9834 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003375/1.318, allocations: 1.224 MB / 0.9846 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002908/1.319, allocations: 11.94 kB / 0.9846 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002832/1.319, allocations: 39.75 kB / 0.9846 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000648/1.32, allocations: 95.73 kB / 0.9847 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006494/1.32, allocations: 99.69 kB / 0.9848 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005075/1.321, allocations: 171.6 kB / 0.985 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000526/1.321, allocations: 210.7 kB / 0.9852 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/1.322, allocations: 87.69 kB / 0.9853 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003855/1.322, allocations: 91.66 kB / 0.9854 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.322e-05/1.322, allocations: 12 kB / 0.9854 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003226/1.322, allocations: 79.88 kB / 0.9854 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001167/1.323, allocations: 63.81 kB / 0.9855 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.085e-05/1.323, allocations: 61.58 kB / 0.9856 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004563/1.323, allocations: 249.6 kB / 0.9858 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/1.323, allocations: 0 / 0.9858 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.006e-06/1.323, allocations: 4 kB / 0.9858 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.656e-06/1.323, allocations: 4 kB / 0.9858 GB, free: 1.176 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001271/1.324, allocations: 491 kB / 0.9863 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.967e-05/1.325, allocations: 8.031 kB / 0.9863 GB, free: 0.6367 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/1.325, allocations: 50.55 kB / 0.9863 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001076/1.326, allocations: 91.64 kB / 0.9864 GB, free: 500 kB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004673/1.326, allocations: 242.6 kB / 0.9866 GB, free: 216 kB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/1.326, allocations: 20.31 kB / 0.9867 GB, free: 196 kB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/1.326, allocations: 16 kB / 0.9867 GB, free: 180 kB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007181/1.327, allocations: 291.2 kB / 0.987 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/1.327, allocations: 0 / 0.987 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.84e-05/1.327, allocations: 8 kB / 0.987 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.908e-05/1.327, allocations: 24.36 kB / 0.987 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004713/1.328, allocations: 192.9 kB / 0.9872 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/1.33, allocations: 1.475 MB / 0.9886 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003748/1.33, allocations: 175.7 kB / 0.9888 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/1.33, allocations: 0 / 0.9888 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/1.33, allocations: 34.56 kB / 0.9888 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 3.557e-06/1.33, allocations: 4 kB / 0.9888 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0006911/1.331, allocations: 227.3 kB / 0.989 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/1.331, allocations: 55.41 kB / 0.9891 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003065/1.332, allocations: 191 kB / 0.9893 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/1.332, allocations: 29.7 kB / 0.9893 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/1.332, allocations: 167.7 kB / 0.9895 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.561e-05/1.332, allocations: 27.64 kB / 0.9895 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-06/1.332, allocations: 4 kB / 0.9895 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001712/1.332, allocations: 330.8 kB / 0.9898 GB, free: 12.69 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/1.332, allocations: 31.98 kB / 0.9898 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/1.332, allocations: 97.59 kB / 0.9899 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/1.333, allocations: 55.98 kB / 0.99 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/1.333, allocations: 0 / 0.99 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005416/1.333, allocations: 186.2 kB / 0.9902 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/1.333, allocations: 8 kB / 0.9902 GB, free: 12.28 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/1.333, allocations: 0 / 0.9902 GB, free: 12.28 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002462/1.333, allocations: 28.78 kB / 0.9902 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/1.334, allocations: 28.08 kB / 0.9902 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/1.335, allocations: 1.327 MB / 0.9915 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00021/1.335, allocations: 19.78 kB / 0.9915 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/1.335, allocations: 11.95 kB / 0.9916 GB, free: 10.73 MB / 0.7481 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.0002604/1.336, allocations: 151.3 kB / 0.9917 GB, free: 10.57 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.565e-05/1.336, allocations: 15.89 kB / 0.9917 GB, free: 10.56 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.363e-05/1.336, allocations: 17.41 kB / 0.9917 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/1.336, allocations: 0 / 0.9917 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/1.336, allocations: 4 kB / 0.9917 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/1.336, allocations: 0 / 0.9917 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008417/1.337, allocations: 447.1 kB / 0.9922 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/1.337, allocations: 4 kB / 0.9922 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.649e-05/1.337, allocations: 8 kB / 0.9922 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001406/1.337, allocations: 20.84 kB / 0.9922 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/1.337, allocations: 7.938 kB / 0.9922 GB, free: 10 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001571/1.339, allocations: 1.323 MB / 0.9935 GB, free: 8.539 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/1.339, allocations: 0 / 0.9935 GB, free: 8.539 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004388/1.339, allocations: 212.2 kB / 0.9937 GB, free: 8.312 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/1.339, allocations: 109 kB / 0.9938 GB, free: 8.188 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/1.339, allocations: 4 kB / 0.9938 GB, free: 8.184 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/1.339, allocations: 4 kB / 0.9938 GB, free: 8.18 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.232e-05/1.34, allocations: 7.984 kB / 0.9938 GB, free: 8.172 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/1.34, allocations: 0 / 0.9938 GB, free: 8.172 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002197/1.34, allocations: 144.3 kB / 0.9939 GB, free: 8.031 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.71e-07/1.34, allocations: 0 / 0.9939 GB, free: 8.031 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006519/1.34, allocations: 51.91 kB / 0.994 GB, free: 7.98 MB / 0.7481 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.0008216/1.341, allocations: 0.752 MB / 0.9947 GB, free: 7.199 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006028/1.342, allocations: 203 kB / 0.9949 GB, free: 6.988 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/1.342, allocations: 4.062 kB / 0.9949 GB, free: 6.984 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002276/1.342, allocations: 142.7 kB / 0.9951 GB, free: 6.832 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/1.343, allocations: 35.69 kB / 0.9951 GB, free: 6.801 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/1.346, allocations: 2.385 MB / 0.9974 GB, free: 4.316 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005617/1.346, allocations: 0.7517 MB / 0.9982 GB, free: 3.539 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001986/1.347, allocations: 33.45 kB / 0.9982 GB, free: 3.508 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/1.347, allocations: 51.42 kB / 0.9982 GB, free: 3.457 MB / 0.7481 GB Notification: Performance of SimCode: time 1.353e-06/1.347, allocations: 0 / 0.9982 GB, free: 3.457 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06993/1.417, allocations: 3.334 MB / 1.001 GB, free: 300 kB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004228/1.417, allocations: 204.8 kB / 1.002 GB, free: 52 kB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.616/5.033, allocations: 0 / 1.002 GB, free: 52 kB / 0.7481 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat does not exist to compare? outputFormat=mat