Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.008384/0.008384, allocations: 102.3 kB / 15.73 MB, free: 6.496 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.001336/0.001336, allocations: 199.1 kB / 16.68 MB, free: 6.371 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.857/2.857, allocations: 469.8 MB / 0.7425 GB, free: 7.277 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 75.81 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3961/0.3975, allocations: 159.1 MB / 1.221 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006172/0.4037, allocations: 3.846 MB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00303/0.4067, allocations: 1.737 MB / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002867/0.407, allocations: 4 kB / 1.226 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.4086, allocations: 0.4932 MB / 1.227 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0006327/0.4092, allocations: 222.9 kB / 1.227 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006408/0.4099, allocations: 219.5 kB / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0006757/0.4105, allocations: 474.4 kB / 1.227 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005741/0.4111, allocations: 297.2 kB / 1.228 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003426/0.4114, allocations: 199.3 kB / 1.228 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004855/0.4119, allocations: 219.2 kB / 1.228 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.547e-05/0.412, allocations: 32 kB / 1.228 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006365/0.4126, allocations: 239.5 kB / 1.228 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.4128, allocations: 123.6 kB / 1.228 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002169/0.413, allocations: 183.1 kB / 1.229 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007786/0.4138, allocations: 0.4904 MB / 1.229 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.4138, allocations: 0 / 1.229 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4138, allocations: 7.875 kB / 1.229 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.638e-05/0.4138, allocations: 0 / 1.229 GB, free: 5.055 MB / 0.9825 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.001272/0.4151, allocations: 0.6388 MB / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.4151, allocations: 8.031 kB / 1.23 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001053/0.4162, allocations: 140.6 kB / 1.23 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/0.4166, allocations: 304.2 kB / 1.23 GB, free: 3.883 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.4166, allocations: 21.03 kB / 1.23 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.4167, allocations: 24.38 kB / 1.23 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007021/0.4174, allocations: 467.9 kB / 1.231 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.4174, allocations: 0 / 1.231 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.023e-05/0.4175, allocations: 19.94 kB / 1.231 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.462e-05/0.4175, allocations: 28.55 kB / 1.231 GB, free: 3.297 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005062/0.418, allocations: 317.9 kB / 1.231 GB, free: 2.988 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.4207, allocations: 2.185 MB / 1.233 GB, free: 0.5898 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003921/0.4211, allocations: 243.8 kB / 1.233 GB, free: 332 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.4213, allocations: 96.8 kB / 1.233 GB, free: 232 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.4213, allocations: 7.938 kB / 1.233 GB, free: 224 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.4214, allocations: 30.56 kB / 1.234 GB, free: 184 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.4214, allocations: 0 / 1.234 GB, free: 184 kB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0006642/0.422, allocations: 314.6 kB / 1.234 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.4221, allocations: 51.41 kB / 1.234 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.4224, allocations: 266.6 kB / 1.234 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.4224, allocations: 25.7 kB / 1.234 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.4226, allocations: 212.3 kB / 1.234 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.081e-05/0.4226, allocations: 47.59 kB / 1.234 GB, free: 15.23 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.45e-05/0.4227, allocations: 49.94 kB / 1.234 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.4229, allocations: 334.8 kB / 1.235 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.423, allocations: 60.44 kB / 1.235 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.4231, allocations: 148.6 kB / 1.235 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/0.4234, allocations: 223.3 kB / 1.235 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4234, allocations: 3.938 kB / 1.235 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004261/0.4238, allocations: 272 kB / 1.235 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.4238, allocations: 4 kB / 1.235 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.4238, allocations: 4 kB / 1.235 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001794/0.424, allocations: 20.84 kB / 1.235 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/0.4243, allocations: 55.91 kB / 1.236 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.4258, allocations: 1.418 MB / 1.237 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.426, allocations: 35.89 kB / 1.237 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.426, allocations: 8 kB / 1.237 GB, free: 12.37 MB / 0.9981 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.00018/0.4262, allocations: 173.7 kB / 1.237 GB, free: 12.19 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.275e-05/0.4262, allocations: 19.86 kB / 1.237 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.154e-05/0.4263, allocations: 29.83 kB / 1.237 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.4263, allocations: 4 kB / 1.237 GB, free: 12.13 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.4263, allocations: 4.062 kB / 1.237 GB, free: 12.13 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.4263, allocations: 0 / 1.237 GB, free: 12.13 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.4274, allocations: 0.7063 MB / 1.238 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.4274, allocations: 0 / 1.238 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.998e-05/0.4274, allocations: 24.19 kB / 1.238 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.652e-05/0.4275, allocations: 32.72 kB / 1.238 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.4276, allocations: 11.97 kB / 1.238 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001464/0.429, allocations: 1.414 MB / 1.239 GB, free: 9.715 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.832e-05/0.4291, allocations: 4.031 kB / 1.239 GB, free: 9.711 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003857/0.4295, allocations: 317.2 kB / 1.24 GB, free: 9.363 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.4296, allocations: 120.9 kB / 1.24 GB, free: 9.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.061e-05/0.4296, allocations: 0 / 1.24 GB, free: 9.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.4298, allocations: 16 kB / 1.24 GB, free: 9.211 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.611e-05/0.4298, allocations: 15.92 kB / 1.24 GB, free: 9.195 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.4299, allocations: 8 kB / 1.24 GB, free: 9.188 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002002/0.4301, allocations: 190 kB / 1.24 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.4301, allocations: 0 / 1.24 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004544/0.4305, allocations: 71.89 kB / 1.24 GB, free: 8.934 MB / 0.9981 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.0001636/0.4307, allocations: 115.1 kB / 1.24 GB, free: 8.809 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0005417/0.4312, allocations: 269.5 kB / 1.24 GB, free: 8.535 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.4312, allocations: 96 / 1.24 GB, free: 8.535 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000217/0.4314, allocations: 183.6 kB / 1.241 GB, free: 8.344 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000518/0.432, allocations: 65.58 kB / 1.241 GB, free: 8.281 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.433, allocations: 0.543 MB / 1.241 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005822/0.4336, allocations: 0.7948 MB / 1.242 GB, free: 6.871 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001488/0.4337, allocations: 42.27 kB / 1.242 GB, free: 6.832 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.646e-05/0.4338, allocations: 19.44 kB / 1.242 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of SimCode: time 8.12e-07/0.4338, allocations: 0 / 1.242 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of Templates: time 0.007439/0.4412, allocations: 2.743 MB / 1.245 GB, free: 4.102 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches