Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009743/0.009743, allocations: 100.8 kB / 15.73 MB, free: 6.07 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.001887/0.001887, allocations: 189 kB / 16.67 MB, free: 5.977 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.517/1.517, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.424/2.424, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 66.3 kB / 0.9508 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.356, allocations: 140.4 MB / 1.088 GB, free: 1.555 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005847/0.3619, allocations: 3.84 MB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002831/0.3647, allocations: 1.71 MB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/0.3649, allocations: 15.94 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.3664, allocations: 0.4893 MB / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000543/0.367, allocations: 222.9 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005722/0.3675, allocations: 207.5 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005872/0.3681, allocations: 490 kB / 1.095 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006228/0.3688, allocations: 369.1 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002322/0.369, allocations: 191.4 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003888/0.3694, allocations: 223.1 kB / 1.095 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.836e-05/0.3695, allocations: 28 kB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00044/0.3699, allocations: 239.4 kB / 1.096 GB, free: 9.539 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.3701, allocations: 127.7 kB / 1.096 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.3702, allocations: 171.2 kB / 1.096 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006388/0.3709, allocations: 0.4981 MB / 1.096 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3709, allocations: 4 kB / 1.096 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.327e-06/0.3709, allocations: 0 / 1.096 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.3709, allocations: 3.938 kB / 1.096 GB, free: 8.738 MB / 0.8575 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.001077/0.372, allocations: 0.6387 MB / 1.097 GB, free: 8.051 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.3721, allocations: 12.03 kB / 1.097 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009248/0.373, allocations: 140.6 kB / 1.097 GB, free: 7.902 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004003/0.3734, allocations: 288.4 kB / 1.098 GB, free: 7.582 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.3735, allocations: 25.02 kB / 1.098 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.3735, allocations: 32.36 kB / 1.098 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006364/0.3742, allocations: 467.9 kB / 1.098 GB, free: 7.031 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.3742, allocations: 4 kB / 1.098 GB, free: 7.027 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/0.3742, allocations: 12 kB / 1.098 GB, free: 7.016 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-05/0.3743, allocations: 32.53 kB / 1.098 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004686/0.3748, allocations: 321.9 kB / 1.098 GB, free: 6.672 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.377, allocations: 2.178 MB / 1.101 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003558/0.3774, allocations: 255.7 kB / 1.101 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002172/0.3776, allocations: 108.8 kB / 1.101 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.3776, allocations: 4 kB / 1.101 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.3777, allocations: 42.48 kB / 1.101 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.3777, allocations: 0 / 1.101 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0005811/0.3783, allocations: 295.4 kB / 1.101 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.3783, allocations: 55.41 kB / 1.101 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002596/0.3786, allocations: 262.6 kB / 1.101 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.3786, allocations: 41.69 kB / 1.102 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.3788, allocations: 208.3 kB / 1.102 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.962e-05/0.3788, allocations: 55.53 kB / 1.102 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.157e-05/0.3789, allocations: 45.89 kB / 1.102 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.379, allocations: 342.8 kB / 1.102 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.059e-05/0.3791, allocations: 52.44 kB / 1.102 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.3793, allocations: 152.2 kB / 1.102 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.3796, allocations: 214.9 kB / 1.103 GB, free: 2 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.3796, allocations: 4 kB / 1.103 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004126/0.38, allocations: 263.8 kB / 1.103 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.38, allocations: 8 kB / 1.103 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.38, allocations: 4.375 kB / 1.103 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001608/0.3802, allocations: 28.84 kB / 1.103 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.3804, allocations: 47.92 kB / 1.103 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/0.3815, allocations: 1.422 MB / 1.104 GB, free: 80 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.3817, allocations: 27.77 kB / 1.104 GB, free: 52 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.3817, allocations: 12 kB / 1.104 GB, free: 40 kB / 0.8575 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.0001711/0.3819, allocations: 173.8 kB / 1.104 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.824e-05/0.3819, allocations: 23.86 kB / 1.104 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.26e-05/0.382, allocations: 25.84 kB / 1.105 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.382, allocations: 0 / 1.105 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.382, allocations: 3.984 kB / 1.105 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.382, allocations: 64 / 1.105 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008711/0.3829, allocations: 0.7103 MB / 1.105 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3829, allocations: 4.188 kB / 1.105 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.807e-05/0.383, allocations: 23.92 kB / 1.105 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.162e-05/0.3831, allocations: 32.72 kB / 1.105 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.3831, allocations: 4 kB / 1.105 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009426/0.384, allocations: 1.418 MB / 1.107 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3841, allocations: 0 / 1.107 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.3844, allocations: 329.2 kB / 1.107 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.943e-05/0.3845, allocations: 109 kB / 1.107 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.3845, allocations: 8 kB / 1.107 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.3847, allocations: 11.98 kB / 1.107 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.897e-05/0.3848, allocations: 19.86 kB / 1.107 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.3848, allocations: 8 kB / 1.107 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001809/0.385, allocations: 190 kB / 1.107 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.8e-07/0.385, allocations: 0 / 1.107 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003889/0.3854, allocations: 83.78 kB / 1.107 GB, free: 12.58 MB / 0.8731 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.000121/0.3855, allocations: 103.2 kB / 1.107 GB, free: 12.47 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004436/0.3859, allocations: 274 kB / 1.108 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3859, allocations: 0 / 1.108 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002086/0.3862, allocations: 182.5 kB / 1.108 GB, free: 12 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004757/0.3866, allocations: 62.61 kB / 1.108 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008119/0.3875, allocations: 0.5353 MB / 1.109 GB, free: 11.36 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.3879, allocations: 0.787 MB / 1.109 GB, free: 10.55 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001255/0.388, allocations: 46.25 kB / 1.109 GB, free: 10.51 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.388, allocations: 19.44 kB / 1.109 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of SimCode: time 2.91e-07/0.388, allocations: 4.188 kB / 1.109 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of Templates: time 0.006014/0.3941, allocations: 2.733 MB / 1.112 GB, free: 7.781 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches