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.0009681/0.0009681, allocations: 91.3 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.001314/0.001314, 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.488/1.488, allocations: 223.3 MB / 240 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 2.604/2.604, allocations: 409.4 MB / 0.684 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003724, allocations: 8 kB / 0.8378 GB, free: 6.492 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7281/0.7285, allocations: 146.8 MB / 0.9811 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004214/0.7328, allocations: 3.345 MB / 0.9844 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00267/0.7355, allocations: 1.618 MB / 0.986 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002039/0.7357, allocations: 8 kB / 0.986 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002522/0.736, allocations: 59.5 kB / 0.986 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004532/0.7365, allocations: 175.1 kB / 0.9862 GB, free: 1.004 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004702/0.7369, allocations: 159.6 kB / 0.9864 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005711/0.7375, allocations: 0.5334 MB / 0.9869 GB, free: 320 kB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003953/0.7379, allocations: 281.2 kB / 0.9872 GB, free: 16 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001982/0.7381, allocations: 155.4 kB / 0.9873 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003973/0.7385, allocations: 199.3 kB / 0.9875 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.7386, allocations: 16 kB / 0.9875 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002623/0.7389, allocations: 119.8 kB / 0.9876 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.739, allocations: 107.7 kB / 0.9877 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 8.252e-05/0.7391, allocations: 85.52 kB / 0.9878 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0004628/0.7396, allocations: 369.3 kB / 0.9882 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.7396, allocations: 0 / 0.9882 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.552e-06/0.7396, allocations: 4 kB / 0.9882 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.7396, allocations: 0 / 0.9882 GB, free: 14.98 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.0009367/0.7405, allocations: 0.5846 MB / 0.9887 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.7406, allocations: 12.03 kB / 0.9887 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.545e-05/0.7407, allocations: 70.47 kB / 0.9888 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000854/0.7416, allocations: 139.4 kB / 0.9889 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.742, allocations: 282.5 kB / 0.9892 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.742, allocations: 20.66 kB / 0.9892 GB, free: 13.78 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/0.742, allocations: 35.94 kB / 0.9893 GB, free: 13.74 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006934/0.7427, allocations: 451.6 kB / 0.9897 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.7428, allocations: 3.984 kB / 0.9897 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.7428, allocations: 15.98 kB / 0.9897 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.245e-05/0.7429, allocations: 28.55 kB / 0.9897 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005381/0.7434, allocations: 325.9 kB / 0.9901 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002409/0.7458, allocations: 2.181 MB / 0.9922 GB, free: 10.5 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004232/0.7463, allocations: 255.8 kB / 0.9924 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002567/0.7465, allocations: 104.8 kB / 0.9925 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.7466, allocations: 7.953 kB / 0.9925 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.7466, allocations: 42.55 kB / 0.9926 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.7466, allocations: 0 / 0.9926 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14): time 0.0005903/0.7472, allocations: 302.5 kB / 0.9929 GB, free: 9.742 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/0.7473, allocations: 51.41 kB / 0.9929 GB, free: 9.68 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.7475, allocations: 270.5 kB / 0.9932 GB, free: 9.41 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.7476, allocations: 33.7 kB / 0.9932 GB, free: 9.371 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.7477, allocations: 207.8 kB / 0.9934 GB, free: 9.164 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.194e-05/0.7478, allocations: 55.25 kB / 0.9935 GB, free: 9.109 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-06/0.7478, allocations: 4 kB / 0.9935 GB, free: 9.105 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002158/0.748, allocations: 330.8 kB / 0.9938 GB, free: 8.773 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.514e-05/0.7481, allocations: 52.44 kB / 0.9938 GB, free: 8.719 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.7484, allocations: 144.1 kB / 0.994 GB, free: 8.539 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.7485, allocations: 85.17 kB / 0.994 GB, free: 8.457 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.7485, allocations: 0 / 0.994 GB, free: 8.457 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004831/0.749, allocations: 266.2 kB / 0.9943 GB, free: 8.188 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.7491, allocations: 4 kB / 0.9943 GB, free: 8.184 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.7491, allocations: 4 kB / 0.9943 GB, free: 8.18 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.7492, allocations: 28.84 kB / 0.9943 GB, free: 8.148 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.7494, allocations: 47.92 kB / 0.9944 GB, free: 8.102 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.7507, allocations: 1.327 MB / 0.9957 GB, free: 6.645 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.7508, allocations: 27.69 kB / 0.9957 GB, free: 6.617 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.7509, allocations: 8 kB / 0.9957 GB, free: 6.609 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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.0001962/0.7511, allocations: 177.8 kB / 0.9959 GB, free: 6.426 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.892e-05/0.7511, allocations: 23.81 kB / 0.9959 GB, free: 6.402 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.954e-05/0.7512, allocations: 33.77 kB / 0.9959 GB, free: 6.367 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.7512, allocations: 0 / 0.9959 GB, free: 6.367 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.7512, allocations: 0 / 0.9959 GB, free: 6.367 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.7512, allocations: 4 kB / 0.9959 GB, free: 6.363 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000899/0.7521, allocations: 0.6986 MB / 0.9966 GB, free: 5.574 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.7521, allocations: 7.938 kB / 0.9966 GB, free: 5.566 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.283e-05/0.7522, allocations: 20 kB / 0.9966 GB, free: 5.547 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.9e-05/0.7523, allocations: 28.98 kB / 0.9967 GB, free: 5.516 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.7523, allocations: 4 kB / 0.9967 GB, free: 5.512 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/0.7535, allocations: 1.308 MB / 0.998 GB, free: 4.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.7535, allocations: 4.031 kB / 0.998 GB, free: 4.066 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/0.7539, allocations: 319.4 kB / 0.9983 GB, free: 3.719 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.918e-05/0.754, allocations: 120.7 kB / 0.9984 GB, free: 3.582 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.754, allocations: 0 / 0.9984 GB, free: 3.582 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.7542, allocations: 16 kB / 0.9984 GB, free: 3.566 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.917e-05/0.7542, allocations: 15.92 kB / 0.9984 GB, free: 3.551 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.7542, allocations: 15.94 kB / 0.9984 GB, free: 3.535 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.00019/0.7544, allocations: 190 kB / 0.9986 GB, free: 3.355 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7544, allocations: 0 / 0.9986 GB, free: 3.355 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004205/0.7549, allocations: 75.75 kB / 0.9987 GB, free: 3.281 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0006191/0.7555, allocations: 0.8512 MB / 0.9995 GB, free: 2.383 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005632/0.7561, allocations: 262.7 kB / 0.9998 GB, free: 2.113 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.7561, allocations: 4 kB / 0.9998 GB, free: 2.109 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002003/0.7563, allocations: 182.5 kB / 0.9999 GB, free: 1.918 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000561/0.7568, allocations: 65.61 kB / 1 GB, free: 1.859 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.7591, allocations: 1.529 MB / 1.001 GB, free: 228 kB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005326/0.7596, allocations: 0.7874 MB / 1.002 GB, free: 15.41 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001515/0.7598, allocations: 46.25 kB / 1.002 GB, free: 15.37 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.7599, allocations: 83.41 kB / 1.002 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of SimCode: time 3.2e-07/0.7599, allocations: 0 / 1.002 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.7774, allocations: 4.914 MB / 1.007 GB, free: 10.55 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004101/0.7778, allocations: 205.9 kB / 1.007 GB, free: 10.32 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.634, allocations: 0 / 1.007 GB, free: 10.32 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