Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_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_9_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.001228/0.001227, 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.001451/0.001451, allocations: 177.3 kB / 15.94 MB, free: 228 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.505/1.505, allocations: 223.2 MB / 239.9 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.43/2.43, allocations: 390.3 MB / 0.6653 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003433, allocations: 8 kB / 0.8145 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8522/0.8525, allocations: 142.3 MB / 0.9535 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004155/0.8567, allocations: 3.25 MB / 0.9567 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002306/0.8591, allocations: 1.587 MB / 0.9582 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.8593, allocations: 9.406 kB / 0.9582 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.8595, allocations: 52.12 kB / 0.9583 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004159/0.8599, allocations: 158.8 kB / 0.9584 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004265/0.8603, allocations: 157.8 kB / 0.9586 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.8607, allocations: 269.2 kB / 0.9588 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003673/0.861, allocations: 285 kB / 0.9591 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.8612, allocations: 137.9 kB / 0.9592 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002842/0.8615, allocations: 142.5 kB / 0.9594 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.511e-05/0.8615, allocations: 15.12 kB / 0.9594 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002648/0.8618, allocations: 119.2 kB / 0.9595 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.093e-05/0.8619, allocations: 95.61 kB / 0.9596 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.708e-05/0.862, allocations: 85.14 kB / 0.9597 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003773/0.8624, allocations: 376 kB / 0.96 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.8624, allocations: 1.031 kB / 0.96 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.844e-06/0.8624, allocations: 0 / 0.96 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.8624, allocations: 0 / 0.96 GB, free: 3.152 MB / 0.7169 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.0008384/0.8632, allocations: 0.5755 MB / 0.9606 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.8633, allocations: 9.188 kB / 0.9606 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009864/0.8643, allocations: 146 kB / 0.9608 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.8647, allocations: 274.6 kB / 0.961 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.8647, allocations: 28.33 kB / 0.961 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.927e-05/0.8647, allocations: 26.06 kB / 0.9611 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006834/0.8654, allocations: 465.3 kB / 0.9615 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.021e-05/0.8655, allocations: 1.031 kB / 0.9615 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.161e-05/0.8655, allocations: 15.92 kB / 0.9615 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.689e-05/0.8656, allocations: 30.08 kB / 0.9616 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005124/0.8661, allocations: 319.2 kB / 0.9619 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.8682, allocations: 2.189 MB / 0.964 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004321/0.8686, allocations: 254.3 kB / 0.9642 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/0.8686, allocations: 1.469 kB / 0.9642 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.8687, allocations: 37.31 kB / 0.9643 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.472e-06/0.8687, allocations: 0 / 0.9643 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0006523/0.8694, allocations: 314 kB / 0.9646 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.8694, allocations: 55.41 kB / 0.9646 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.8697, allocations: 264.6 kB / 0.9649 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.971e-05/0.8697, allocations: 30.7 kB / 0.9649 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.8699, allocations: 205.4 kB / 0.9651 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.972e-05/0.8699, allocations: 46.36 kB / 0.9651 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.145e-06/0.87, allocations: 1 kB / 0.9652 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.8701, allocations: 336.1 kB / 0.9655 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.8702, allocations: 55.41 kB / 0.9655 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.8704, allocations: 148.2 kB / 0.9657 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.8706, allocations: 89.92 kB / 0.9658 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.8706, allocations: 1.219 kB / 0.9658 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004336/0.871, allocations: 273.6 kB / 0.966 GB, free: 14 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.8711, allocations: 9.609 kB / 0.966 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.8711, allocations: 3.625 kB / 0.966 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001721/0.8712, allocations: 26.12 kB / 0.9661 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.8715, allocations: 50.31 kB / 0.9661 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.8727, allocations: 1.331 MB / 0.9674 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.8729, allocations: 26.78 kB / 0.9674 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.8729, allocations: 8.656 kB / 0.9674 GB, free: 12.58 MB / 0.7325 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.0002067/0.8732, allocations: 185 kB / 0.9676 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.8732, allocations: 26.67 kB / 0.9676 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.273e-05/0.8733, allocations: 28.92 kB / 0.9677 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.8733, allocations: 3.5 kB / 0.9677 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.8733, allocations: 0 / 0.9677 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.8733, allocations: 0 / 0.9677 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008888/0.8742, allocations: 0.6324 MB / 0.9683 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.8742, allocations: 1.031 kB / 0.9683 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.65e-05/0.8743, allocations: 22.17 kB / 0.9683 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.567e-05/0.8744, allocations: 24.28 kB / 0.9683 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.8744, allocations: 1.312 kB / 0.9683 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/0.8754, allocations: 1.324 MB / 0.9696 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.8755, allocations: 5.312 kB / 0.9696 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003957/0.8759, allocations: 359.3 kB / 0.97 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.876, allocations: 108.7 kB / 0.9701 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.125e-05/0.876, allocations: 6.562 kB / 0.9701 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.8762, allocations: 11.91 kB / 0.9701 GB, free: 10 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.978e-05/0.8762, allocations: 17.11 kB / 0.9701 GB, free: 9.992 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.8763, allocations: 4.406 kB / 0.9701 GB, free: 9.992 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002211/0.8765, allocations: 197.7 kB / 0.9703 GB, free: 9.852 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8765, allocations: 0 / 0.9703 GB, free: 9.852 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004765/0.877, allocations: 80.09 kB / 0.9704 GB, free: 9.832 MB / 0.7325 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.0001415/0.8771, allocations: 99.88 kB / 0.9705 GB, free: 9.742 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005357/0.8777, allocations: 284 kB / 0.9707 GB, free: 9.551 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.8777, allocations: 4.969 kB / 0.9707 GB, free: 9.547 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002291/0.8779, allocations: 172.5 kB / 0.9709 GB, free: 9.41 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/0.8783, allocations: 49.8 kB / 0.971 GB, free: 9.387 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.8794, allocations: 0.6271 MB / 0.9716 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/0.8798, allocations: 0.8039 MB / 0.9724 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001752/0.8799, allocations: 43.52 kB / 0.9724 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.008e-05/0.88, allocations: 19.06 kB / 0.9724 GB, free: 8.109 MB / 0.7325 GB Notification: Performance of SimCode: time 3.11e-07/0.88, allocations: 0 / 0.9724 GB, free: 8.109 MB / 0.7325 GB Notification: Performance of Templates: time 0.006282/0.8863, allocations: 2.44 MB / 0.9748 GB, free: 6.918 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches