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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001788/0.001793, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.002364/0.002364, allocations: 195 kB / 16.14 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.5/2.5, allocations: 390.2 MB / 0.6642 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 0.8118 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7421/0.7434, allocations: 140.4 MB / 0.9489 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005899/0.7493, allocations: 3.876 MB / 0.9527 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003491/0.7529, allocations: 1.734 MB / 0.9544 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002673/0.7532, allocations: 6.531 kB / 0.9544 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.7545, allocations: 466.2 kB / 0.9548 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000558/0.7551, allocations: 213.8 kB / 0.955 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.7557, allocations: 199.7 kB / 0.9552 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006727/0.7564, allocations: 0.6577 MB / 0.9559 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005916/0.757, allocations: 242.6 kB / 0.9561 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003038/0.7573, allocations: 164.1 kB / 0.9563 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003908/0.7577, allocations: 224.6 kB / 0.9565 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.965e-05/0.7578, allocations: 19.34 kB / 0.9565 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005375/0.7583, allocations: 308 kB / 0.9568 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.7584, allocations: 121.7 kB / 0.9569 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002041/0.7587, allocations: 158.9 kB / 0.9571 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005319/0.7592, allocations: 0.5089 MB / 0.9576 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.7592, allocations: 0 / 0.9576 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.133e-06/0.7592, allocations: 0 / 0.9576 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.7592, allocations: 1.469 kB / 0.9576 GB, free: 2.812 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.0009783/0.7602, allocations: 0.6269 MB / 0.9582 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.7603, allocations: 13.62 kB / 0.9582 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008966/0.7612, allocations: 137.6 kB / 0.9583 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003276/0.7615, allocations: 280.9 kB / 0.9586 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.7615, allocations: 24.05 kB / 0.9586 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.7616, allocations: 25.81 kB / 0.9586 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006708/0.7623, allocations: 475 kB / 0.9591 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.7623, allocations: 0.875 kB / 0.9591 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/0.7623, allocations: 11.88 kB / 0.9591 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-05/0.7624, allocations: 26.64 kB / 0.9591 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004871/0.7629, allocations: 324.5 kB / 0.9594 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.7648, allocations: 2.201 MB / 0.9616 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003759/0.7652, allocations: 250.2 kB / 0.9618 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000263/0.7655, allocations: 120.9 kB / 0.9619 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.7655, allocations: 2.25 kB / 0.9619 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.7655, allocations: 32 kB / 0.962 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.7656, allocations: 0 / 0.962 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0006205/0.7662, allocations: 298 kB / 0.9622 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.7662, allocations: 57.84 kB / 0.9623 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003523/0.7666, allocations: 265.5 kB / 0.9626 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.7666, allocations: 26.83 kB / 0.9626 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.7668, allocations: 214.1 kB / 0.9628 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.557e-05/0.7669, allocations: 41.89 kB / 0.9628 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.767, allocations: 51.19 kB / 0.9629 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.7671, allocations: 333.2 kB / 0.9632 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.7673, allocations: 58.62 kB / 0.9632 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.7675, allocations: 148.4 kB / 0.9634 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002992/0.7678, allocations: 220.4 kB / 0.9636 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.7678, allocations: 1.312 kB / 0.9636 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000498/0.7683, allocations: 261.4 kB / 0.9638 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.7683, allocations: 10.78 kB / 0.9639 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.7684, allocations: 2.094 kB / 0.9639 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.7686, allocations: 28.06 kB / 0.9639 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.7688, allocations: 49.34 kB / 0.9639 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001257/0.77, allocations: 1.313 MB / 0.9652 GB, free: 12 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001993/0.7703, allocations: 27.62 kB / 0.9652 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.7703, allocations: 13.25 kB / 0.9653 GB, free: 11.97 MB / 0.7325 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001913/0.7705, allocations: 167.1 kB / 0.9654 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-05/0.7706, allocations: 35.05 kB / 0.9654 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.115e-05/0.7706, allocations: 24.47 kB / 0.9655 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.7707, allocations: 1.312 kB / 0.9655 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.7707, allocations: 1.344 kB / 0.9655 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.7707, allocations: 3.984 kB / 0.9655 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009817/0.7717, allocations: 0.7061 MB / 0.9662 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.7717, allocations: 6.344 kB / 0.9662 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.549e-05/0.7718, allocations: 30.11 kB / 0.9662 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.076e-05/0.7719, allocations: 24.5 kB / 0.9662 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.7719, allocations: 2.781 kB / 0.9662 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.7729, allocations: 1.324 MB / 0.9675 GB, free: 9.754 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.7729, allocations: 1.188 kB / 0.9675 GB, free: 9.754 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003397/0.7733, allocations: 314.9 kB / 0.9678 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.723e-05/0.7734, allocations: 112.8 kB / 0.9679 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.15e-05/0.7734, allocations: 11.17 kB / 0.9679 GB, free: 9.363 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.7736, allocations: 6.719 kB / 0.9679 GB, free: 9.363 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-05/0.7736, allocations: 18.27 kB / 0.968 GB, free: 9.352 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.7736, allocations: 6.156 kB / 0.968 GB, free: 9.352 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001983/0.7738, allocations: 190 kB / 0.9682 GB, free: 9.223 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7739, allocations: 5.094 kB / 0.9682 GB, free: 9.219 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004639/0.7743, allocations: 84.44 kB / 0.9682 GB, free: 9.195 MB / 0.7325 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001588/0.7745, allocations: 100 kB / 0.9683 GB, free: 9.105 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005202/0.775, allocations: 262.1 kB / 0.9686 GB, free: 8.93 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.775, allocations: 5.031 kB / 0.9686 GB, free: 8.926 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.7753, allocations: 184.5 kB / 0.9688 GB, free: 8.777 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005056/0.7758, allocations: 54.34 kB / 0.9688 GB, free: 8.754 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009742/0.7768, allocations: 0.6602 MB / 0.9695 GB, free: 8.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.7772, allocations: 0.7884 MB / 0.9702 GB, free: 7.484 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000156/0.7774, allocations: 44.53 kB / 0.9703 GB, free: 7.465 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.188e-05/0.7774, allocations: 24.36 kB / 0.9703 GB, free: 7.453 MB / 0.7325 GB Notification: Performance of SimCode: time 2.8e-07/0.7774, allocations: 3.938 kB / 0.9703 GB, free: 7.449 MB / 0.7325 GB Notification: Performance of Templates: time 0.006868/0.7843, allocations: 2.579 MB / 0.9728 GB, free: 6.199 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches