Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001438/0.001438, allocations: 116.4 kB / 16.37 MB, free: 6.004 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.001559/0.001559, allocations: 192.8 kB / 17.31 MB, free: 5.613 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.491/1.491, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.489/2.489, allocations: 437.1 MB / 0.7112 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 64.61 kB / 0.8707 GB, free: 1.484 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2956, allocations: 151.6 MB / 1.019 GB, free: 9.891 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005147/0.3008, allocations: 3.835 MB / 1.023 GB, free: 6.035 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002579/0.3034, allocations: 1.729 MB / 1.024 GB, free: 4.297 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.3035, allocations: 8 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001402/0.3049, allocations: 0.4922 MB / 1.025 GB, free: 3.797 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0004634/0.3054, allocations: 218.9 kB / 1.025 GB, free: 3.582 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.3059, allocations: 215.5 kB / 1.025 GB, free: 3.371 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000511/0.3064, allocations: 478.4 kB / 1.026 GB, free: 2.902 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000555/0.307, allocations: 357.1 kB / 1.026 GB, free: 2.551 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.3072, allocations: 199.3 kB / 1.026 GB, free: 2.355 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003385/0.3076, allocations: 207.3 kB / 1.026 GB, free: 2.152 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.741e-05/0.3076, allocations: 28 kB / 1.026 GB, free: 2.125 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003911/0.308, allocations: 255.4 kB / 1.027 GB, free: 1.875 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.3082, allocations: 127.7 kB / 1.027 GB, free: 1.75 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.3083, allocations: 167.2 kB / 1.027 GB, free: 1.586 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005664/0.3089, allocations: 0.4984 MB / 1.027 GB, free: 1.086 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3089, allocations: 0 / 1.027 GB, free: 1.086 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3089, allocations: 0 / 1.027 GB, free: 1.086 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.114e-05/0.309, allocations: 0 / 1.027 GB, free: 1.086 MB / 0.795 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.0009439/0.3099, allocations: 0.6393 MB / 1.028 GB, free: 408 kB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.31, allocations: 12.92 kB / 1.028 GB, free: 396 kB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008808/0.3108, allocations: 124.4 kB / 1.028 GB, free: 272 kB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004116/0.3113, allocations: 299.6 kB / 1.028 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.3113, allocations: 25.03 kB / 1.028 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.3113, allocations: 32.36 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006024/0.312, allocations: 463.9 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.312, allocations: 4 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.399e-05/0.312, allocations: 19.88 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.114e-05/0.3121, allocations: 28.55 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004591/0.3126, allocations: 325.9 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002014/0.3146, allocations: 2.177 MB / 1.031 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003392/0.3149, allocations: 255.8 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.3152, allocations: 104.8 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.3152, allocations: 4 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/0.3152, allocations: 38.81 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.3152, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0005679/0.3158, allocations: 300.2 kB / 1.032 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.041e-05/0.3159, allocations: 55.41 kB / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.3161, allocations: 266.6 kB / 1.032 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.3162, allocations: 29.7 kB / 1.032 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.3163, allocations: 207.8 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.46e-05/0.3163, allocations: 51.3 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.849e-05/0.3164, allocations: 45.84 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3165, allocations: 342.8 kB / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.084e-05/0.3166, allocations: 52.44 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001397/0.3168, allocations: 148.5 kB / 1.033 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.317, allocations: 222.9 kB / 1.033 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.317, allocations: 0 / 1.033 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003913/0.3174, allocations: 264.1 kB / 1.034 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.3175, allocations: 11.19 kB / 1.034 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3175, allocations: 8 kB / 1.034 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001451/0.3176, allocations: 24.84 kB / 1.034 GB, free: 10.05 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.3178, allocations: 51.91 kB / 1.034 GB, free: 10 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009905/0.3188, allocations: 1.422 MB / 1.035 GB, free: 8.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.319, allocations: 23.69 kB / 1.035 GB, free: 8.422 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.319, allocations: 12 kB / 1.035 GB, free: 8.41 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.0001505/0.3192, allocations: 173.7 kB / 1.035 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.3192, allocations: 27.66 kB / 1.035 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.006e-05/0.3193, allocations: 33.83 kB / 1.035 GB, free: 8.164 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3193, allocations: 0 / 1.035 GB, free: 8.164 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3193, allocations: 0 / 1.035 GB, free: 8.164 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3193, allocations: 4 kB / 1.035 GB, free: 8.16 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008807/0.3202, allocations: 0.7065 MB / 1.036 GB, free: 7.363 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.3202, allocations: 4 kB / 1.036 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.706e-05/0.3203, allocations: 19.98 kB / 1.036 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.901e-05/0.3204, allocations: 28.78 kB / 1.036 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.3204, allocations: 4.188 kB / 1.036 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008895/0.3213, allocations: 1.418 MB / 1.038 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.3213, allocations: 7.922 kB / 1.038 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003013/0.3216, allocations: 321.1 kB / 1.038 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.3218, allocations: 120.7 kB / 1.038 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.3218, allocations: 4 kB / 1.038 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.322, allocations: 8 kB / 1.038 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.916e-05/0.322, allocations: 19.92 kB / 1.038 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.322, allocations: 8 kB / 1.038 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001706/0.3222, allocations: 190 kB / 1.038 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3222, allocations: 0 / 1.038 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003881/0.3226, allocations: 75.84 kB / 1.038 GB, free: 4.953 MB / 0.8106 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.0001061/0.3227, allocations: 103.2 kB / 1.038 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004266/0.3231, allocations: 274.8 kB / 1.039 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3232, allocations: 0 / 1.039 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.3234, allocations: 182.5 kB / 1.039 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000456/0.3238, allocations: 68.95 kB / 1.039 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008008/0.3246, allocations: 0.5321 MB / 1.039 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.325, allocations: 0.7909 MB / 1.04 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001229/0.3251, allocations: 42.2 kB / 1.04 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.56e-05/0.3252, allocations: 27.44 kB / 1.04 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of SimCode: time 2.71e-07/0.3252, allocations: 4 kB / 1.04 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of Templates: time 0.005942/0.3311, allocations: 2.684 MB / 1.043 GB, free: 196 kB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches