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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001161/0.001161, allocations: 107 kB / 16.36 MB, free: 6.336 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.001114/0.001114, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.479/2.479, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 67.97 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.307, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005413/0.3125, allocations: 3.852 MB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002822/0.3153, allocations: 1.729 MB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.3155, allocations: 11.94 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.3169, allocations: 0.4932 MB / 1.033 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005468/0.3175, allocations: 222.9 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.3181, allocations: 207.5 kB / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004959/0.3186, allocations: 470.4 kB / 1.034 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005455/0.3191, allocations: 369.1 kB / 1.034 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.3193, allocations: 195.3 kB / 1.034 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003587/0.3197, allocations: 211.2 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.159e-05/0.3197, allocations: 28 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000451/0.3202, allocations: 247.4 kB / 1.035 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.3204, allocations: 131.7 kB / 1.035 GB, free: 9.891 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001699/0.3205, allocations: 175.1 kB / 1.035 GB, free: 9.719 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005519/0.3211, allocations: 0.4984 MB / 1.035 GB, free: 9.219 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3211, allocations: 0 / 1.035 GB, free: 9.219 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3211, allocations: 0 / 1.035 GB, free: 9.219 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.304e-06/0.3211, allocations: 4 kB / 1.035 GB, free: 9.215 MB / 0.8106 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.00105/0.3222, allocations: 0.6276 MB / 1.036 GB, free: 8.539 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3222, allocations: 8.031 kB / 1.036 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008678/0.3231, allocations: 136.4 kB / 1.036 GB, free: 8.398 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.3235, allocations: 292.4 kB / 1.036 GB, free: 8.074 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.3236, allocations: 21.03 kB / 1.036 GB, free: 8.055 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.284e-05/0.3236, allocations: 36.3 kB / 1.036 GB, free: 8.02 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006027/0.3242, allocations: 467.9 kB / 1.037 GB, free: 7.527 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.3242, allocations: 4 kB / 1.037 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.3243, allocations: 12 kB / 1.037 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.806e-05/0.3243, allocations: 32.55 kB / 1.037 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/0.3248, allocations: 321.9 kB / 1.037 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.3271, allocations: 2.181 MB / 1.039 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003514/0.3275, allocations: 247.7 kB / 1.04 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.3277, allocations: 116.8 kB / 1.04 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.3278, allocations: 4.234 kB / 1.04 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3278, allocations: 38.5 kB / 1.04 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.3278, allocations: 0 / 1.04 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0005673/0.3284, allocations: 298.8 kB / 1.04 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.3284, allocations: 51.41 kB / 1.04 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.3287, allocations: 270.6 kB / 1.04 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.3287, allocations: 33.7 kB / 1.04 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.3288, allocations: 199.8 kB / 1.041 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.683e-05/0.3289, allocations: 55.22 kB / 1.041 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-05/0.3289, allocations: 45.86 kB / 1.041 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.3291, allocations: 342.8 kB / 1.041 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.274e-05/0.3292, allocations: 52.44 kB / 1.041 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.3293, allocations: 145.5 kB / 1.041 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000245/0.3296, allocations: 218.9 kB / 1.041 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.3296, allocations: 4 kB / 1.041 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004011/0.33, allocations: 265.3 kB / 1.042 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.33, allocations: 12.03 kB / 1.042 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.33, allocations: 0 / 1.042 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001597/0.3302, allocations: 32.78 kB / 1.042 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.3304, allocations: 43.92 kB / 1.042 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.3314, allocations: 1.426 MB / 1.043 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.3316, allocations: 27.69 kB / 1.043 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.3316, allocations: 12 kB / 1.043 GB, free: 0.5469 MB / 0.8106 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.0001488/0.3317, allocations: 177.7 kB / 1.043 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.994e-05/0.3318, allocations: 23.72 kB / 1.043 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.3319, allocations: 29.83 kB / 1.043 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.3319, allocations: 0 / 1.043 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.3319, allocations: 0 / 1.043 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3319, allocations: 0 / 1.043 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008311/0.3327, allocations: 0.6947 MB / 1.044 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3327, allocations: 4.062 kB / 1.044 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.729e-05/0.3328, allocations: 31.92 kB / 1.044 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.892e-05/0.3329, allocations: 24.97 kB / 1.044 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.3329, allocations: 12.19 kB / 1.044 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000885/0.3338, allocations: 1.418 MB / 1.045 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3338, allocations: 0 / 1.045 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.3341, allocations: 325.1 kB / 1.046 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.3343, allocations: 112.8 kB / 1.046 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.839e-05/0.3343, allocations: 8 kB / 1.046 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.3345, allocations: 11.98 kB / 1.046 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.021e-05/0.3345, allocations: 19.86 kB / 1.046 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.3345, allocations: 12 kB / 1.046 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001653/0.3347, allocations: 190 kB / 1.046 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3347, allocations: 0 / 1.046 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003769/0.3351, allocations: 75.84 kB / 1.046 GB, free: 13.1 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.0001067/0.3352, allocations: 95.25 kB / 1.046 GB, free: 13 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004271/0.3356, allocations: 270.5 kB / 1.047 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.3356, allocations: 4 kB / 1.047 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.3358, allocations: 182.5 kB / 1.047 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/0.3363, allocations: 69.39 kB / 1.047 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008136/0.3371, allocations: 0.5358 MB / 1.047 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.3375, allocations: 0.787 MB / 1.048 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001198/0.3376, allocations: 42.27 kB / 1.048 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.876e-05/0.3377, allocations: 27.38 kB / 1.048 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3377, allocations: 0 / 1.048 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of Templates: time 0.005877/0.3436, allocations: 2.683 MB / 1.051 GB, free: 8.34 MB / 0.8262 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 -s gbode -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