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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 99.7 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.001275/0.001275, allocations: 177.3 kB / 15.94 MB, free: 220 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.469/1.469, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.698/2.698, allocations: 436.5 MB / 0.7104 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003629/0.000363, allocations: 8 kB / 0.8707 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.724/0.7243, allocations: 153.7 MB / 1.021 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004594/0.729, allocations: 3.257 MB / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002505/0.7315, allocations: 1.598 MB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.7317, allocations: 7.938 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002/0.7319, allocations: 55.67 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000415/0.7324, allocations: 155.5 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.7328, allocations: 159.5 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003318/0.7331, allocations: 259.5 kB / 1.026 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003898/0.7335, allocations: 293.2 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.7337, allocations: 131.5 kB / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002794/0.734, allocations: 143.5 kB / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.49e-05/0.734, allocations: 16 kB / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002325/0.7343, allocations: 115.7 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.7344, allocations: 95.78 kB / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.321e-05/0.7345, allocations: 85.52 kB / 1.027 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003787/0.7348, allocations: 365 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.7349, allocations: 0 / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.423e-06/0.7349, allocations: 4 kB / 1.027 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.7349, allocations: 0 / 1.027 GB, free: 10.33 MB / 0.7794 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.000869/0.7357, allocations: 0.5885 MB / 1.028 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.7358, allocations: 11.98 kB / 1.028 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009394/0.7367, allocations: 147.4 kB / 1.028 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.7371, allocations: 274.5 kB / 1.028 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.7371, allocations: 28.59 kB / 1.028 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-05/0.7372, allocations: 28 kB / 1.028 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006376/0.7378, allocations: 463.5 kB / 1.029 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.7379, allocations: 4 kB / 1.029 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.545e-05/0.7379, allocations: 12 kB / 1.029 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.408e-05/0.738, allocations: 28.55 kB / 1.029 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004608/0.7384, allocations: 317.9 kB / 1.029 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002398/0.7408, allocations: 2.193 MB / 1.031 GB, free: 5.926 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003976/0.7413, allocations: 255.8 kB / 1.032 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.092e-05/0.7413, allocations: 0 / 1.032 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.7413, allocations: 46.5 kB / 1.032 GB, free: 5.594 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.293e-06/0.7413, allocations: 0 / 1.032 GB, free: 5.594 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0006185/0.7419, allocations: 307.5 kB / 1.032 GB, free: 5.266 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.742, allocations: 51.41 kB / 1.032 GB, free: 5.203 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.7423, allocations: 266.5 kB / 1.032 GB, free: 4.938 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.7423, allocations: 29.7 kB / 1.032 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.7425, allocations: 203.8 kB / 1.032 GB, free: 4.695 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.341e-05/0.7425, allocations: 51.36 kB / 1.032 GB, free: 4.645 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.818e-06/0.7425, allocations: 4 kB / 1.032 GB, free: 4.641 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.7427, allocations: 334.8 kB / 1.033 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.7428, allocations: 64.38 kB / 1.033 GB, free: 4.238 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.743, allocations: 147 kB / 1.033 GB, free: 4.059 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.7431, allocations: 85.78 kB / 1.033 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.7431, allocations: 7.953 kB / 1.033 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004132/0.7435, allocations: 261.9 kB / 1.033 GB, free: 3.703 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.7436, allocations: 4 kB / 1.033 GB, free: 3.699 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.7436, allocations: 4 kB / 1.033 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001778/0.7438, allocations: 29.19 kB / 1.033 GB, free: 3.664 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.744, allocations: 51.92 kB / 1.033 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001211/0.7452, allocations: 1.323 MB / 1.035 GB, free: 2.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.7454, allocations: 27.69 kB / 1.035 GB, free: 2.133 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.7454, allocations: 15.98 kB / 1.035 GB, free: 2.117 MB / 0.7794 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.0001724/0.7456, allocations: 171.5 kB / 1.035 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.739e-05/0.7456, allocations: 23.72 kB / 1.035 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.925e-05/0.7457, allocations: 26.02 kB / 1.035 GB, free: 1.891 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.7457, allocations: 8 kB / 1.035 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.7457, allocations: 0 / 1.035 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.7457, allocations: 3.984 kB / 1.035 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000897/0.7466, allocations: 0.6351 MB / 1.036 GB, free: 1.172 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.7466, allocations: 128 / 1.036 GB, free: 1.172 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.937e-05/0.7467, allocations: 24 kB / 1.036 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.757e-05/0.7468, allocations: 20.84 kB / 1.036 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.7469, allocations: 7.953 kB / 1.036 GB, free: 1.117 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.7481, allocations: 1.327 MB / 1.037 GB, free: 15.66 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.7481, allocations: 3.938 kB / 1.037 GB, free: 15.65 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003959/0.7485, allocations: 349.4 kB / 1.037 GB, free: 15.26 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.7486, allocations: 116.8 kB / 1.037 GB, free: 15.12 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.763e-05/0.7486, allocations: 4 kB / 1.037 GB, free: 15.12 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.7488, allocations: 23.94 kB / 1.037 GB, free: 15.1 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.639e-05/0.7489, allocations: 7.984 kB / 1.037 GB, free: 15.09 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.7489, allocations: 4 kB / 1.037 GB, free: 15.09 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001787/0.7491, allocations: 190 kB / 1.038 GB, free: 14.9 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.443e-06/0.7491, allocations: 0 / 1.038 GB, free: 14.9 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003965/0.7495, allocations: 83.78 kB / 1.038 GB, free: 14.82 MB / 0.795 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.000125/0.7496, allocations: 107.2 kB / 1.038 GB, free: 14.71 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004851/0.7501, allocations: 274.4 kB / 1.038 GB, free: 14.43 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.7501, allocations: 0 / 1.038 GB, free: 14.43 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002176/0.7503, allocations: 179.5 kB / 1.038 GB, free: 14.24 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.7507, allocations: 58.09 kB / 1.038 GB, free: 14.18 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.7519, allocations: 0.621 MB / 1.039 GB, free: 13.52 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005501/0.7524, allocations: 0.7989 MB / 1.04 GB, free: 12.7 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001795/0.7526, allocations: 46.25 kB / 1.04 GB, free: 12.65 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.763e-05/0.7527, allocations: 19.44 kB / 1.04 GB, free: 12.63 MB / 0.795 GB Notification: Performance of SimCode: time 5.51e-07/0.7527, allocations: 0 / 1.04 GB, free: 12.63 MB / 0.795 GB Notification: Performance of Templates: time 0.006479/0.7592, allocations: 2.431 MB / 1.042 GB, free: 10.22 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (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 & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches