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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001284/0.001284, allocations: 113.3 kB / 16.42 MB, free: 6.504 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.001323/0.001323, allocations: 190.6 kB / 17.35 MB, free: 5.738 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.321/1.321, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.527/2.527, allocations: 461.9 MB / 0.7355 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 60.12 kB / 1.055 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8136/0.815, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005638/0.8206, allocations: 3.84 MB / 1.212 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002858/0.8235, allocations: 1.729 MB / 1.214 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000275/0.8238, allocations: 4 kB / 1.214 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001499/0.8253, allocations: 0.4903 MB / 1.214 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.00061/0.826, allocations: 222.9 kB / 1.215 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005795/0.8266, allocations: 203.5 kB / 1.215 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006528/0.8272, allocations: 482.4 kB / 1.215 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005796/0.8278, allocations: 357 kB / 1.216 GB, free: 6.262 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000291/0.8281, allocations: 199.3 kB / 1.216 GB, free: 6.066 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004499/0.8286, allocations: 219.2 kB / 1.216 GB, free: 5.852 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.882e-05/0.8286, allocations: 32 kB / 1.216 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004626/0.8291, allocations: 247.4 kB / 1.216 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.8293, allocations: 127.7 kB / 1.216 GB, free: 5.453 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.8295, allocations: 175.1 kB / 1.216 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000687/0.8302, allocations: 0.5002 MB / 1.217 GB, free: 4.781 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.8302, allocations: 0 / 1.217 GB, free: 4.781 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.353e-06/0.8302, allocations: 0 / 1.217 GB, free: 4.781 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.3e-05/0.8302, allocations: 0 / 1.217 GB, free: 4.781 MB / 0.9356 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.001147/0.8313, allocations: 0.6316 MB / 1.218 GB, free: 4.098 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.8314, allocations: 8.031 kB / 1.218 GB, free: 4.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000929/0.8323, allocations: 136.4 kB / 1.218 GB, free: 3.957 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004181/0.8328, allocations: 295.6 kB / 1.218 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.8328, allocations: 21.03 kB / 1.218 GB, free: 3.609 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.8328, allocations: 24.38 kB / 1.218 GB, free: 3.586 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006721/0.8335, allocations: 467.9 kB / 1.218 GB, free: 3.094 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.8336, allocations: 0 / 1.218 GB, free: 3.094 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.815e-05/0.8336, allocations: 12 kB / 1.219 GB, free: 3.082 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.022e-05/0.8336, allocations: 28.55 kB / 1.219 GB, free: 3.055 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005081/0.8342, allocations: 321.9 kB / 1.219 GB, free: 2.738 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.8365, allocations: 2.185 MB / 1.221 GB, free: 348 kB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003921/0.8369, allocations: 255.8 kB / 1.221 GB, free: 64 kB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002427/0.8372, allocations: 104.8 kB / 1.221 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.8372, allocations: 4 kB / 1.221 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.8373, allocations: 30.56 kB / 1.221 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=14): time 2.154e-06/0.8373, allocations: 0 / 1.221 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14): time 0.0006747/0.8379, allocations: 311.3 kB / 1.222 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.838, allocations: 55.34 kB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003132/0.8383, allocations: 270.5 kB / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.8384, allocations: 25.7 kB / 1.222 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.8385, allocations: 203.9 kB / 1.222 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.8386, allocations: 51.2 kB / 1.222 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.8387, allocations: 49.94 kB / 1.222 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.8388, allocations: 338.8 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.839, allocations: 60.44 kB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.8391, allocations: 136.1 kB / 1.223 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.8394, allocations: 221.8 kB / 1.223 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.8394, allocations: 0 / 1.223 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004305/0.8399, allocations: 273.9 kB / 1.223 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.8399, allocations: 4 kB / 1.223 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.8399, allocations: 4 kB / 1.223 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001815/0.8401, allocations: 24.84 kB / 1.223 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.8403, allocations: 51.91 kB / 1.223 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.8415, allocations: 1.418 MB / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.8417, allocations: 35.73 kB / 1.225 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.8417, allocations: 12 kB / 1.225 GB, free: 12.11 MB / 0.9512 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.0001729/0.8419, allocations: 161.8 kB / 1.225 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.911e-05/0.842, allocations: 31.64 kB / 1.225 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.721e-05/0.842, allocations: 21.94 kB / 1.225 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.842, allocations: 7.922 kB / 1.225 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.842, allocations: 0 / 1.225 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.8421, allocations: 116.8 kB / 1.225 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/0.8422, allocations: 4 kB / 1.225 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.8423, allocations: 11.98 kB / 1.225 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.8424, allocations: 8 kB / 1.225 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003812/0.8428, allocations: 253.5 kB / 1.225 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003502/0.8431, allocations: 382.5 kB / 1.226 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.279e-05/0.8432, allocations: 47.97 kB / 1.226 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000181/0.8434, allocations: 190 kB / 1.226 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of Backend: time 8.32e-07/0.8434, allocations: 0 / 1.226 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001084/0.8445, allocations: 432.7 kB / 1.226 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of SimCode: time 0.001233/0.8457, allocations: 0.9802 MB / 1.227 GB, free: 9.379 MB / 0.9512 GB Notification: Performance of Templates: time 0.009024/0.8548, allocations: 3.968 MB / 1.231 GB, free: 5.438 MB / 0.9512 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches