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.00109/0.00109, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009602/0.009602, allocations: 169.3 kB / 16.26 MB, free: 6.676 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.435/1.435, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.84/2.84, allocations: 462.7 MB / 0.7364 GB, free: 220 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003644, allocations: 8.656 kB / 0.9028 GB, free: 36.72 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3065, allocations: 159.6 MB / 1.059 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005531/0.3121, allocations: 3.507 MB / 1.062 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00305/0.3152, allocations: 1.695 MB / 1.064 GB, free: 204 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003776/0.3156, allocations: 8 kB / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.316, allocations: 59.5 kB / 1.064 GB, free: 136 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0008286/0.3168, allocations: 211 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007183/0.3176, allocations: 202.8 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009071/0.3185, allocations: 0.6622 MB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004814/0.319, allocations: 319.5 kB / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002974/0.3193, allocations: 151.4 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004915/0.3198, allocations: 203.2 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.011e-05/0.3198, allocations: 16 kB / 1.066 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005529/0.3204, allocations: 299.3 kB / 1.066 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.3206, allocations: 111.7 kB / 1.066 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.3208, allocations: 184.8 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007101/0.3215, allocations: 0.4946 MB / 1.067 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3215, allocations: 4 kB / 1.067 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3215, allocations: 0 / 1.067 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.587e-05/0.3215, allocations: 0 / 1.067 GB, free: 13.29 MB / 0.8262 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.001101/0.3226, allocations: 0.5693 MB / 1.067 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.3227, allocations: 8.031 kB / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001012/0.3237, allocations: 140.3 kB / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.3241, allocations: 287.6 kB / 1.068 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.381e-05/0.3241, allocations: 25.03 kB / 1.068 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.071e-05/0.3242, allocations: 28.36 kB / 1.068 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007065/0.3249, allocations: 463.9 kB / 1.068 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.3249, allocations: 4 kB / 1.068 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.325, allocations: 15.98 kB / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.807e-05/0.325, allocations: 28.55 kB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005165/0.3256, allocations: 321.9 kB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.3279, allocations: 2.193 MB / 1.071 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003937/0.3283, allocations: 255.8 kB / 1.071 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.3286, allocations: 112.8 kB / 1.071 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.234e-05/0.3286, allocations: 0 / 1.071 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.3286, allocations: 34.56 kB / 1.071 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.3286, allocations: 0 / 1.071 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006704/0.3293, allocations: 307.2 kB / 1.071 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.3294, allocations: 51.41 kB / 1.071 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.3297, allocations: 270.5 kB / 1.072 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.3297, allocations: 25.7 kB / 1.072 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.3298, allocations: 211.8 kB / 1.072 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.016e-05/0.3299, allocations: 47.3 kB / 1.072 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.697e-05/0.3299, allocations: 33.8 kB / 1.072 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3301, allocations: 334.7 kB / 1.072 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.915e-05/0.3302, allocations: 60.42 kB / 1.072 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.3303, allocations: 144.7 kB / 1.072 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.3306, allocations: 229.4 kB / 1.073 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3306, allocations: 0 / 1.073 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004204/0.331, allocations: 265.9 kB / 1.073 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3311, allocations: 4 kB / 1.073 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.3311, allocations: 4 kB / 1.073 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001606/0.3313, allocations: 28.84 kB / 1.073 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/0.3315, allocations: 52.28 kB / 1.073 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/0.3325, allocations: 1.311 MB / 1.074 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/0.3328, allocations: 39.73 kB / 1.074 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.3328, allocations: 8 kB / 1.074 GB, free: 4.781 MB / 0.8262 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.0001791/0.333, allocations: 163.5 kB / 1.074 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.507e-05/0.333, allocations: 31.64 kB / 1.074 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.498e-05/0.3331, allocations: 29.78 kB / 1.074 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3331, allocations: 64 / 1.074 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3331, allocations: 4 kB / 1.074 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3331, allocations: 7.984 kB / 1.074 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009405/0.3341, allocations: 0.6986 MB / 1.075 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3341, allocations: 192 / 1.075 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.882e-05/0.3342, allocations: 31.92 kB / 1.075 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.42e-05/0.3343, allocations: 24.84 kB / 1.075 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.3343, allocations: 4 kB / 1.075 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009428/0.3352, allocations: 1.323 MB / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3353, allocations: 0 / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003326/0.3356, allocations: 313.1 kB / 1.077 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.3357, allocations: 112.8 kB / 1.077 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.076e-05/0.3358, allocations: 7.984 kB / 1.077 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.3359, allocations: 15.94 kB / 1.077 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.3e-05/0.336, allocations: 15.98 kB / 1.077 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.336, allocations: 11.94 kB / 1.077 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001877/0.3362, allocations: 190 kB / 1.077 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3362, allocations: 0 / 1.077 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004049/0.3366, allocations: 79.81 kB / 1.077 GB, free: 1.449 MB / 0.8262 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.0001282/0.3367, allocations: 111.2 kB / 1.077 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004617/0.3372, allocations: 265 kB / 1.078 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.3372, allocations: 4 kB / 1.078 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002167/0.3375, allocations: 179.5 kB / 1.078 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000568/0.338, allocations: 56.72 kB / 1.078 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009663/0.339, allocations: 0.6655 MB / 1.078 GB, free: 104 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/0.3394, allocations: 0.7872 MB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001627/0.3396, allocations: 46.25 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.016e-05/0.3397, allocations: 27.42 kB / 1.079 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.3397, allocations: 0 / 1.079 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of Templates: time 0.006651/0.3463, allocations: 2.573 MB / 1.082 GB, free: 12.67 MB / 0.8419 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/jenkins/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