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.00152/0.001521, allocations: 111.4 kB / 16.37 MB, free: 5.539 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.001697/0.001697, allocations: 193 kB / 17.31 MB, free: 5.18 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.542/2.542, allocations: 442.5 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 59.81 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3645, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005952/0.3705, allocations: 3.85 MB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003056/0.3736, allocations: 1.733 MB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000225/0.3739, allocations: 4 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001467/0.3753, allocations: 0.4942 MB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005176/0.3759, allocations: 214.9 kB / 1.033 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005535/0.3764, allocations: 215.4 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004998/0.3769, allocations: 466.5 kB / 1.034 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005809/0.3775, allocations: 365.1 kB / 1.034 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.3778, allocations: 203.3 kB / 1.034 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004219/0.3782, allocations: 215.2 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.748e-05/0.3783, allocations: 28 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004394/0.3787, allocations: 243.5 kB / 1.035 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.3788, allocations: 123.7 kB / 1.035 GB, free: 9.914 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001747/0.379, allocations: 175.1 kB / 1.035 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005931/0.3796, allocations: 0.5023 MB / 1.035 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3796, allocations: 0 / 1.035 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3797, allocations: 0 / 1.035 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.3797, allocations: 0 / 1.035 GB, free: 9.238 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.0009492/0.3806, allocations: 0.6329 MB / 1.036 GB, free: 8.559 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3807, allocations: 8.031 kB / 1.036 GB, free: 8.551 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008632/0.3815, allocations: 136.4 kB / 1.036 GB, free: 8.418 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004441/0.382, allocations: 296.4 kB / 1.036 GB, free: 8.09 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.382, allocations: 21.03 kB / 1.036 GB, free: 8.07 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.3821, allocations: 32.3 kB / 1.036 GB, free: 8.039 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006908/0.3828, allocations: 467.9 kB / 1.037 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3828, allocations: 3.938 kB / 1.037 GB, free: 7.543 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.103e-05/0.3829, allocations: 19.97 kB / 1.037 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.824e-05/0.3829, allocations: 24.55 kB / 1.037 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004712/0.3834, allocations: 321.9 kB / 1.037 GB, free: 7.184 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002214/0.3856, allocations: 2.177 MB / 1.039 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003836/0.386, allocations: 255.4 kB / 1.04 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.3863, allocations: 108.8 kB / 1.04 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.3863, allocations: 8.25 kB / 1.04 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.3863, allocations: 30.56 kB / 1.04 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.492e-06/0.3863, allocations: 0 / 1.04 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.000558/0.3869, allocations: 303.2 kB / 1.04 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.3869, allocations: 51.41 kB / 1.04 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.3872, allocations: 266.6 kB / 1.04 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.3872, allocations: 33.7 kB / 1.04 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.3874, allocations: 211.8 kB / 1.041 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.3874, allocations: 47.3 kB / 1.041 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.989e-05/0.3875, allocations: 45.86 kB / 1.041 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3876, allocations: 334.8 kB / 1.041 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.194e-05/0.3877, allocations: 60.44 kB / 1.041 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.3879, allocations: 149.4 kB / 1.041 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.3881, allocations: 215.1 kB / 1.041 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3882, allocations: 4 kB / 1.041 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004158/0.3886, allocations: 272.5 kB / 1.042 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3886, allocations: 4 kB / 1.042 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3886, allocations: 4.375 kB / 1.042 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001624/0.3888, allocations: 32.84 kB / 1.042 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.389, allocations: 43.92 kB / 1.042 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.3902, allocations: 1.422 MB / 1.043 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.3904, allocations: 35.66 kB / 1.043 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.3904, allocations: 12 kB / 1.043 GB, free: 0.5625 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.0001667/0.3906, allocations: 173.7 kB / 1.043 GB, free: 392 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.666e-05/0.3907, allocations: 23.72 kB / 1.043 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.758e-05/0.3907, allocations: 25.92 kB / 1.043 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.3907, allocations: 7.938 kB / 1.043 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.3907, allocations: 0 / 1.043 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3908, allocations: 0 / 1.043 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009144/0.3917, allocations: 0.6986 MB / 1.044 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3917, allocations: 3.984 kB / 1.044 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.559e-05/0.3918, allocations: 24 kB / 1.044 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.314e-05/0.3919, allocations: 28.72 kB / 1.044 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.3919, allocations: 4 kB / 1.044 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009608/0.3929, allocations: 1.422 MB / 1.045 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3929, allocations: 4.031 kB / 1.045 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003159/0.3932, allocations: 321.1 kB / 1.046 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.3933, allocations: 112.8 kB / 1.046 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.3933, allocations: 11.98 kB / 1.046 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.3935, allocations: 4 kB / 1.046 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.955e-05/0.3935, allocations: 19.92 kB / 1.046 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.3936, allocations: 4 kB / 1.046 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000214/0.3938, allocations: 198 kB / 1.046 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3938, allocations: 0 / 1.046 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003751/0.3942, allocations: 75.84 kB / 1.046 GB, free: 13.12 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.0001117/0.3943, allocations: 99.19 kB / 1.046 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004946/0.3948, allocations: 274.7 kB / 1.047 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3948, allocations: 0 / 1.047 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.3951, allocations: 182.5 kB / 1.047 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004468/0.3955, allocations: 65.73 kB / 1.047 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008731/0.3964, allocations: 0.5357 MB / 1.047 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.3968, allocations: 0.787 MB / 1.048 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001309/0.3969, allocations: 50.23 kB / 1.048 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.636e-05/0.397, allocations: 19.44 kB / 1.048 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of SimCode: time 2.655e-06/0.397, allocations: 4 kB / 1.048 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of Templates: time 0.005763/0.4027, allocations: 2.695 MB / 1.051 GB, free: 8.348 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 cvode -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