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.001349/0.001349, allocations: 92 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.001571/0.001571, 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.503/1.503, allocations: 223.3 MB / 240 MB, free: 5.434 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.719/2.719, allocations: 390.9 MB / 0.666 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003595, allocations: 8 kB / 0.8153 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8037/0.804, allocations: 142.4 MB / 0.9544 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004788/0.8089, allocations: 3.358 MB / 0.9577 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002841/0.8118, allocations: 1.616 MB / 0.9593 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002213/0.812, allocations: 5.5 kB / 0.9593 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002388/0.8123, allocations: 59.75 kB / 0.9593 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004724/0.8128, allocations: 176.3 kB / 0.9595 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004962/0.8133, allocations: 147.5 kB / 0.9597 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005397/0.8138, allocations: 0.532 MB / 0.9602 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004552/0.8143, allocations: 292.9 kB / 0.9605 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.8145, allocations: 151.3 kB / 0.9606 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000365/0.8149, allocations: 199.8 kB / 0.9608 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.8149, allocations: 15.12 kB / 0.9608 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002866/0.8152, allocations: 125.2 kB / 0.9609 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.8153, allocations: 111.3 kB / 0.961 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.758e-05/0.8154, allocations: 80.7 kB / 0.9611 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004007/0.8158, allocations: 376.5 kB / 0.9615 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.8158, allocations: 0 / 0.9615 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.885e-06/0.8159, allocations: 4.75 kB / 0.9615 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.855e-06/0.8159, allocations: 0 / 0.9615 GB, free: 2.43 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.0008188/0.8167, allocations: 0.5801 MB / 0.962 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.8168, allocations: 9.219 kB / 0.962 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008649/0.8176, allocations: 136.9 kB / 0.9622 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.818, allocations: 287.3 kB / 0.9625 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.818, allocations: 20.25 kB / 0.9625 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.066e-05/0.8181, allocations: 30.42 kB / 0.9625 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006564/0.8187, allocations: 451.4 kB / 0.9629 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.8187, allocations: 4.984 kB / 0.9629 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.899e-05/0.8188, allocations: 20.47 kB / 0.963 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.847e-05/0.8189, allocations: 37.7 kB / 0.963 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000481/0.8193, allocations: 319 kB / 0.9633 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.8216, allocations: 2.186 MB / 0.9654 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004034/0.822, allocations: 252.7 kB / 0.9657 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.8222, allocations: 117.4 kB / 0.9658 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.8223, allocations: 3.984 kB / 0.9658 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.8223, allocations: 37.88 kB / 0.9658 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 2.365e-06/0.8223, allocations: 0 / 0.9658 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0006283/0.8229, allocations: 299.8 kB / 0.9661 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.823, allocations: 57.38 kB / 0.9662 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.8233, allocations: 268.3 kB / 0.9664 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.8233, allocations: 30.8 kB / 0.9664 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.8235, allocations: 205.9 kB / 0.9666 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.8235, allocations: 46.66 kB / 0.9667 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.153e-05/0.8236, allocations: 4.938 kB / 0.9667 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.8237, allocations: 331.8 kB / 0.967 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.8238, allocations: 54.44 kB / 0.9671 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.824, allocations: 146.6 kB / 0.9672 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.8242, allocations: 79.66 kB / 0.9673 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.8242, allocations: 1.188 kB / 0.9673 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000428/0.8246, allocations: 276.2 kB / 0.9675 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.8246, allocations: 8.406 kB / 0.9675 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.8247, allocations: 7.219 kB / 0.9676 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001665/0.8248, allocations: 27.75 kB / 0.9676 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.825, allocations: 46.27 kB / 0.9676 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.8261, allocations: 1.315 MB / 0.9689 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.8263, allocations: 31.22 kB / 0.9689 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.8263, allocations: 17.34 kB / 0.969 GB, free: 11.8 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 (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.0001771/0.8265, allocations: 165.6 kB / 0.9691 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.556e-05/0.8266, allocations: 27.98 kB / 0.9691 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.089e-05/0.8266, allocations: 35.75 kB / 0.9692 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.8266, allocations: 2.188 kB / 0.9692 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.8266, allocations: 0 / 0.9692 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.8267, allocations: 0.8125 kB / 0.9692 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009984/0.8277, allocations: 0.7098 MB / 0.9699 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.8277, allocations: 2.031 kB / 0.9699 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.993e-05/0.8278, allocations: 22.66 kB / 0.9699 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.906e-05/0.8279, allocations: 24 kB / 0.9699 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.8279, allocations: 3 kB / 0.9699 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009485/0.8288, allocations: 1.312 MB / 0.9712 GB, free: 9.602 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.8289, allocations: 5.859 kB / 0.9712 GB, free: 9.598 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003536/0.8292, allocations: 313.1 kB / 0.9715 GB, free: 9.332 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.8293, allocations: 116.9 kB / 0.9716 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.8294, allocations: 11.03 kB / 0.9716 GB, free: 9.203 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.8295, allocations: 11.05 kB / 0.9716 GB, free: 9.199 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.8296, allocations: 18.95 kB / 0.9717 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.8296, allocations: 5 kB / 0.9717 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001987/0.8298, allocations: 189.1 kB / 0.9718 GB, free: 9.055 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8298, allocations: 0 / 0.9718 GB, free: 9.055 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000441/0.8303, allocations: 81 kB / 0.9719 GB, free: 9.035 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 (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.0001313/0.8304, allocations: 107.6 kB / 0.972 GB, free: 8.938 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005048/0.8309, allocations: 274.4 kB / 0.9723 GB, free: 8.75 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.8309, allocations: 0 / 0.9723 GB, free: 8.75 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002428/0.8312, allocations: 178.4 kB / 0.9725 GB, free: 8.609 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005114/0.8317, allocations: 60.08 kB / 0.9725 GB, free: 8.578 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.8328, allocations: 0.6433 MB / 0.9731 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.8332, allocations: 0.7922 MB / 0.9739 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001902/0.8334, allocations: 44.66 kB / 0.974 GB, free: 7.293 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.125e-05/0.8335, allocations: 25 kB / 0.974 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of SimCode: time 6.81e-07/0.8335, allocations: 0 / 0.974 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of Templates: time 0.00758/0.8411, allocations: 2.476 MB / 0.9764 GB, free: 6.074 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