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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.00158/0.00158, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.557/1.557, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.77/2.77, allocations: 437 MB / 0.7103 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001278, allocations: 67.88 kB / 0.8692 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9149/0.9162, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006461/0.9227, allocations: 3.833 MB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002802/0.9255, allocations: 1.729 MB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.9257, allocations: 8 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001382/0.9271, allocations: 494 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004771/0.9276, allocations: 218.9 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004914/0.9281, allocations: 219.4 kB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004893/0.9286, allocations: 474.5 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005772/0.9292, allocations: 375.1 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001916/0.9294, allocations: 183.4 kB / 1.025 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003561/0.9297, allocations: 215.2 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.95e-05/0.9298, allocations: 28 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003859/0.9302, allocations: 243.4 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.9303, allocations: 127.7 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.9305, allocations: 171.2 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005403/0.931, allocations: 0.5023 MB / 1.026 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.9311, allocations: 0 / 1.026 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.364e-06/0.9311, allocations: 0 / 1.026 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.391e-05/0.9311, allocations: 0 / 1.026 GB, free: 9.711 MB / 0.7794 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.001041/0.9321, allocations: 0.6277 MB / 1.026 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.9322, allocations: 12.03 kB / 1.026 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009243/0.9331, allocations: 136.3 kB / 1.027 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.9335, allocations: 279.7 kB / 1.027 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.9335, allocations: 28.95 kB / 1.027 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.508e-05/0.9336, allocations: 28.38 kB / 1.027 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006385/0.9342, allocations: 471.9 kB / 1.027 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.9342, allocations: 4 kB / 1.027 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.84e-05/0.9343, allocations: 12 kB / 1.027 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.807e-05/0.9343, allocations: 24.55 kB / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004659/0.9348, allocations: 325.9 kB / 1.028 GB, free: 7.668 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.9372, allocations: 2.2 MB / 1.03 GB, free: 5.254 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004067/0.9376, allocations: 243.8 kB / 1.03 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.9379, allocations: 112.8 kB / 1.03 GB, free: 4.875 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.9379, allocations: 7.938 kB / 1.03 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.9379, allocations: 30.66 kB / 1.03 GB, free: 4.828 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.9379, allocations: 7.938 kB / 1.03 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0006286/0.9386, allocations: 300.5 kB / 1.031 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.9386, allocations: 55.41 kB / 1.031 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002796/0.9389, allocations: 270.6 kB / 1.031 GB, free: 4.164 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.9389, allocations: 29.64 kB / 1.031 GB, free: 4.129 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.9391, allocations: 203.8 kB / 1.031 GB, free: 3.926 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.369e-05/0.9391, allocations: 51.3 kB / 1.031 GB, free: 3.875 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.522e-05/0.9392, allocations: 49.84 kB / 1.031 GB, free: 3.816 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.9394, allocations: 334.8 kB / 1.031 GB, free: 3.48 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.425e-05/0.9395, allocations: 60.42 kB / 1.032 GB, free: 3.422 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.9396, allocations: 141 kB / 1.032 GB, free: 3.246 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.9399, allocations: 220.8 kB / 1.032 GB, free: 2.992 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.9399, allocations: 4 kB / 1.032 GB, free: 2.988 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003962/0.9403, allocations: 263.3 kB / 1.032 GB, free: 2.723 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.9404, allocations: 13.72 kB / 1.032 GB, free: 2.711 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.9404, allocations: 8 kB / 1.032 GB, free: 2.703 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001785/0.9406, allocations: 24.84 kB / 1.032 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.9407, allocations: 51.91 kB / 1.032 GB, free: 2.625 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.9419, allocations: 1.414 MB / 1.034 GB, free: 1.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.942, allocations: 31.59 kB / 1.034 GB, free: 1.043 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.9421, allocations: 12 kB / 1.034 GB, free: 1.031 MB / 0.7794 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.0001696/0.9422, allocations: 169.8 kB / 1.034 GB, free: 0.8555 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.79e-05/0.9423, allocations: 23.8 kB / 1.034 GB, free: 0.832 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.259e-05/0.9424, allocations: 29.83 kB / 1.034 GB, free: 0.7969 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.9424, allocations: 0 / 1.034 GB, free: 0.7969 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.9424, allocations: 0 / 1.034 GB, free: 0.7969 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.9424, allocations: 0 / 1.034 GB, free: 0.7969 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008456/0.9432, allocations: 0.7063 MB / 1.035 GB, free: 0 / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-05/0.9433, allocations: 8.141 kB / 1.035 GB, free: 15.99 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.677e-05/0.9433, allocations: 19.94 kB / 1.035 GB, free: 15.97 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.972e-05/0.9434, allocations: 36.95 kB / 1.035 GB, free: 15.93 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.9435, allocations: 8 kB / 1.035 GB, free: 15.92 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009467/0.9444, allocations: 1.41 MB / 1.036 GB, free: 14.37 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.9444, allocations: 0 / 1.036 GB, free: 14.37 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003219/0.9447, allocations: 313.2 kB / 1.036 GB, free: 14.03 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.9449, allocations: 124.7 kB / 1.036 GB, free: 13.89 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.709e-05/0.9449, allocations: 0 / 1.036 GB, free: 13.89 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.9451, allocations: 16 kB / 1.036 GB, free: 13.87 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.9451, allocations: 23.86 kB / 1.036 GB, free: 13.85 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.9451, allocations: 4 kB / 1.036 GB, free: 13.84 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001786/0.9453, allocations: 190 kB / 1.037 GB, free: 13.66 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9453, allocations: 0 / 1.037 GB, free: 13.66 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003776/0.9457, allocations: 75.78 kB / 1.037 GB, free: 13.59 MB / 0.795 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.0001338/0.9458, allocations: 107.2 kB / 1.037 GB, free: 13.47 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004677/0.9463, allocations: 280.6 kB / 1.037 GB, free: 13.19 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.9463, allocations: 0 / 1.037 GB, free: 13.19 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002029/0.9465, allocations: 183.5 kB / 1.037 GB, free: 13 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004625/0.947, allocations: 65.3 kB / 1.037 GB, free: 12.94 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008974/0.9479, allocations: 0.5435 MB / 1.038 GB, free: 12.35 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.9483, allocations: 0.7948 MB / 1.039 GB, free: 11.53 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001515/0.9484, allocations: 42.25 kB / 1.039 GB, free: 11.48 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.417e-05/0.9485, allocations: 23.44 kB / 1.039 GB, free: 11.46 MB / 0.795 GB Notification: Performance of SimCode: time 6.41e-07/0.9485, allocations: 0 / 1.039 GB, free: 11.46 MB / 0.795 GB Notification: Performance of Templates: time 0.006202/0.9547, allocations: 2.683 MB / 1.041 GB, free: 8.812 MB / 0.795 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 -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/jenkins/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