Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",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.001857/0.001857, allocations: 100.2 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.00273/0.00273, 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.681/2.681, allocations: 223.2 MB / 239.9 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.673/4.673, allocations: 409.2 MB / 0.6838 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006066/0.0006067, allocations: 8 kB / 0.8375 GB, free: 6.57 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.347/1.348, allocations: 146.8 MB / 0.9809 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.008217/1.356, allocations: 3.248 MB / 0.984 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004835/1.361, allocations: 1.59 MB / 0.9856 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004356/1.362, allocations: 11.94 kB / 0.9856 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003766/1.362, allocations: 59.61 kB / 0.9857 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0009196/1.363, allocations: 151.6 kB / 0.9858 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009864/1.364, allocations: 155.6 kB / 0.986 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0006551/1.365, allocations: 263.5 kB / 0.9862 GB, free: 0.8008 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007138/1.365, allocations: 289.2 kB / 0.9865 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003263/1.366, allocations: 131.5 kB / 0.9866 GB, free: 376 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000535/1.366, allocations: 143.4 kB / 0.9867 GB, free: 232 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.087e-05/1.366, allocations: 16 kB / 0.9868 GB, free: 216 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005997/1.367, allocations: 111.8 kB / 0.9869 GB, free: 104 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001825/1.367, allocations: 99.7 kB / 0.987 GB, free: 4 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002312/1.368, allocations: 81.62 kB / 0.987 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0007529/1.368, allocations: 369.3 kB / 0.9874 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/1.368, allocations: 0 / 0.9874 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of FrontEnd: time 4.719e-06/1.368, allocations: 4 kB / 0.9874 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.001e-05/1.368, allocations: 0 / 0.9874 GB, free: 15.55 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001778/1.37, allocations: 0.5846 MB / 0.988 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 7.492e-05/1.37, allocations: 12.03 kB / 0.988 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001508/1.37, allocations: 62.55 kB / 0.988 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001858/1.372, allocations: 155.4 kB / 0.9882 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008122/1.373, allocations: 278.5 kB / 0.9885 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.185e-05/1.373, allocations: 20.66 kB / 0.9885 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.69e-05/1.373, allocations: 35.94 kB / 0.9885 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/1.374, allocations: 455.6 kB / 0.9889 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/1.374, allocations: 3.938 kB / 0.9889 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.607e-05/1.375, allocations: 16 kB / 0.989 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.461e-05/1.375, allocations: 28.55 kB / 0.989 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007156/1.375, allocations: 317.9 kB / 0.9893 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/1.379, allocations: 2.193 MB / 0.9914 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005647/1.38, allocations: 254.8 kB / 0.9917 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/1.38, allocations: 0 / 0.9917 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.134e-05/1.38, allocations: 38.52 kB / 0.9917 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=14): time 2.134e-06/1.38, allocations: 96 / 0.9917 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14): time 0.0008959/1.381, allocations: 323.4 kB / 0.992 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/1.381, allocations: 51.41 kB / 0.9921 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004399/1.381, allocations: 262.5 kB / 0.9923 GB, free: 10.08 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/1.381, allocations: 33.7 kB / 0.9924 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/1.382, allocations: 207.8 kB / 0.9926 GB, free: 9.836 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.704e-05/1.382, allocations: 47.27 kB / 0.9926 GB, free: 9.789 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.809e-05/1.382, allocations: 4 kB / 0.9926 GB, free: 9.785 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002454/1.382, allocations: 342.8 kB / 0.9929 GB, free: 9.441 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/1.382, allocations: 52.44 kB / 0.993 GB, free: 9.387 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002746/1.382, allocations: 139.1 kB / 0.9931 GB, free: 9.215 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/1.383, allocations: 91.91 kB / 0.9932 GB, free: 9.125 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/1.383, allocations: 0 / 0.9932 GB, free: 9.125 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006579/1.383, allocations: 262.8 kB / 0.9934 GB, free: 8.859 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/1.383, allocations: 14.17 kB / 0.9935 GB, free: 8.848 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/1.383, allocations: 4 kB / 0.9935 GB, free: 8.844 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002791/1.384, allocations: 28.78 kB / 0.9935 GB, free: 8.812 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003231/1.384, allocations: 44.33 kB / 0.9935 GB, free: 8.77 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/1.386, allocations: 1.335 MB / 0.9948 GB, free: 7.305 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/1.386, allocations: 35.97 kB / 0.9949 GB, free: 7.27 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/1.386, allocations: 8 kB / 0.9949 GB, free: 7.262 MB / 0.7481 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 (27): * Single equations (assignments): 26 * 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.0003028/1.387, allocations: 173.6 kB / 0.995 GB, free: 7.082 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.676e-05/1.387, allocations: 23.72 kB / 0.9951 GB, free: 7.059 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.442e-05/1.387, allocations: 25.83 kB / 0.9951 GB, free: 7.031 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/1.387, allocations: 4 kB / 0.9951 GB, free: 7.027 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/1.387, allocations: 0 / 0.9951 GB, free: 7.027 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/1.387, allocations: 3.984 kB / 0.9951 GB, free: 7.023 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/1.388, allocations: 0.6273 MB / 0.9957 GB, free: 6.324 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/1.388, allocations: 0 / 0.9957 GB, free: 6.324 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001331/1.388, allocations: 23.92 kB / 0.9957 GB, free: 6.301 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001403/1.389, allocations: 28.97 kB / 0.9958 GB, free: 6.27 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/1.389, allocations: 4 kB / 0.9958 GB, free: 6.266 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/1.39, allocations: 1.327 MB / 0.9971 GB, free: 4.805 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.39, allocations: 0 / 0.9971 GB, free: 4.805 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006056/1.391, allocations: 350.5 kB / 0.9974 GB, free: 4.406 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/1.391, allocations: 108.9 kB / 0.9975 GB, free: 4.281 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/1.391, allocations: 11.94 kB / 0.9975 GB, free: 4.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/1.391, allocations: 15.98 kB / 0.9975 GB, free: 4.254 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.121e-05/1.391, allocations: 19.94 kB / 0.9975 GB, free: 4.234 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/1.391, allocations: 4 kB / 0.9976 GB, free: 4.23 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003123/1.392, allocations: 193.9 kB / 0.9977 GB, free: 4.047 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.3e-07/1.392, allocations: 3.938 kB / 0.9977 GB, free: 4.043 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006675/1.392, allocations: 75.84 kB / 0.9978 GB, free: 3.969 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 12 * 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.00122/1.394, allocations: 1.161 MB / 0.9989 GB, free: 2.754 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008358/1.394, allocations: 270.4 kB / 0.9992 GB, free: 2.477 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/1.394, allocations: 4 kB / 0.9992 GB, free: 2.473 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003649/1.395, allocations: 183.4 kB / 0.9994 GB, free: 2.281 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006704/1.396, allocations: 52.55 kB / 0.9994 GB, free: 2.23 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005033/1.401, allocations: 3.163 MB / 1.003 GB, free: 14.95 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006961/1.401, allocations: 0.7989 MB / 1.003 GB, free: 14.13 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002627/1.402, allocations: 46.25 kB / 1.003 GB, free: 14.09 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/1.402, allocations: 83.41 kB / 1.003 GB, free: 14 MB / 0.7637 GB Notification: Performance of SimCode: time 1.042e-06/1.402, allocations: 0 / 1.003 GB, free: 14 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0658/1.468, allocations: 4.823 MB / 1.008 GB, free: 9.359 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005106/1.468, allocations: 210.5 kB / 1.008 GB, free: 9.113 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.657/5.125, allocations: 0 / 1.008 GB, free: 9.113 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat does not exist to compare? outputFormat=mat