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.001153/0.001153, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001306/0.001306, allocations: 198.5 kB / 16.14 MB, free: 6.711 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.396/1.396, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.742/2.742, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 67.16 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3437, allocations: 157.4 MB / 1.052 GB, free: 8.91 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005822/0.3495, allocations: 3.881 MB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00293/0.3525, allocations: 1.73 MB / 1.058 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/0.3527, allocations: 7.938 kB / 1.058 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.3541, allocations: 466.5 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005165/0.3546, allocations: 215 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.3551, allocations: 195.6 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000579/0.3557, allocations: 0.6545 MB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004115/0.3561, allocations: 241.2 kB / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.3563, allocations: 171.3 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003733/0.3567, allocations: 223.2 kB / 1.06 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.3568, allocations: 24 kB / 1.06 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004916/0.3573, allocations: 303.3 kB / 1.06 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.3574, allocations: 115.7 kB / 1.06 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.3576, allocations: 159.2 kB / 1.06 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005851/0.3582, allocations: 0.5103 MB / 1.061 GB, free: 24 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3582, allocations: 0 / 1.061 GB, free: 24 kB / 0.8106 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3582, allocations: 0 / 1.061 GB, free: 24 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.3582, allocations: 4 kB / 1.061 GB, free: 20 kB / 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.001063/0.3593, allocations: 0.6315 MB / 1.061 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.3593, allocations: 12.03 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009221/0.3602, allocations: 132.4 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.3606, allocations: 279.7 kB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.258e-05/0.3606, allocations: 25.03 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.808e-05/0.3607, allocations: 32.38 kB / 1.062 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006596/0.3613, allocations: 463.8 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.3614, allocations: 4 kB / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.012e-05/0.3614, allocations: 23.98 kB / 1.062 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.033e-05/0.3615, allocations: 24.55 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004754/0.362, allocations: 321.9 kB / 1.063 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002102/0.3641, allocations: 2.197 MB / 1.065 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003675/0.3644, allocations: 243.8 kB / 1.065 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.3647, allocations: 112.8 kB / 1.065 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.3647, allocations: 0 / 1.065 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.3648, allocations: 34.56 kB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 2.475e-06/0.3648, allocations: 0 / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006102/0.3654, allocations: 306.7 kB / 1.065 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.3654, allocations: 59.39 kB / 1.065 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.3657, allocations: 266.6 kB / 1.066 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.3657, allocations: 25.7 kB / 1.066 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.3659, allocations: 203.8 kB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.458e-05/0.3659, allocations: 55.28 kB / 1.066 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.739e-05/0.366, allocations: 53.94 kB / 1.066 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.3661, allocations: 334.7 kB / 1.066 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.683e-05/0.3662, allocations: 60.44 kB / 1.066 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.3664, allocations: 144.7 kB / 1.067 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.3667, allocations: 225.8 kB / 1.067 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.3667, allocations: 0 / 1.067 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004167/0.3671, allocations: 266.1 kB / 1.067 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.3671, allocations: 8 kB / 1.067 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.3671, allocations: 4 kB / 1.067 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001719/0.3673, allocations: 20.84 kB / 1.067 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.3675, allocations: 55.91 kB / 1.067 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009779/0.3685, allocations: 1.315 MB / 1.068 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.3687, allocations: 31.59 kB / 1.068 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.3687, allocations: 12 kB / 1.068 GB, free: 7.445 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.0001594/0.3689, allocations: 165.9 kB / 1.069 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.19e-05/0.3689, allocations: 27.66 kB / 1.069 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.386e-05/0.369, allocations: 29.83 kB / 1.069 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.369, allocations: 0 / 1.069 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.369, allocations: 4 kB / 1.069 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.369, allocations: 3.984 kB / 1.069 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008677/0.3699, allocations: 0.7026 MB / 1.069 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3699, allocations: 0 / 1.069 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.187e-05/0.37, allocations: 31.92 kB / 1.069 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.201e-05/0.3701, allocations: 25.03 kB / 1.069 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.3701, allocations: 7.938 kB / 1.069 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008694/0.371, allocations: 1.315 MB / 1.071 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.371, allocations: 4.031 kB / 1.071 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003221/0.3713, allocations: 317.1 kB / 1.071 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.313e-05/0.3714, allocations: 108.8 kB / 1.071 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.3715, allocations: 8 kB / 1.071 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.3716, allocations: 11.98 kB / 1.071 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/0.3717, allocations: 15.92 kB / 1.071 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.3717, allocations: 4 kB / 1.071 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001719/0.3719, allocations: 198 kB / 1.071 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3719, allocations: 0 / 1.071 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004016/0.3723, allocations: 83.81 kB / 1.071 GB, free: 4.117 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.0001181/0.3724, allocations: 99.19 kB / 1.072 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004346/0.3729, allocations: 270.8 kB / 1.072 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3729, allocations: 0 / 1.072 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002092/0.3731, allocations: 182.5 kB / 1.072 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/0.3736, allocations: 57.59 kB / 1.072 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009353/0.3745, allocations: 0.648 MB / 1.073 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.3749, allocations: 0.7951 MB / 1.073 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.00016/0.3751, allocations: 42.25 kB / 1.073 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.882e-05/0.3751, allocations: 23.44 kB / 1.073 GB, free: 1.91 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.3751, allocations: 0 / 1.073 GB, free: 1.91 MB / 0.8262 GB Notification: Performance of Templates: time 0.007713/0.3828, allocations: 2.595 MB / 1.076 GB, free: 15.34 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