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.001328/0.001329, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001289/0.001289, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.409/1.409, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.623/2.623, allocations: 437.1 MB / 0.7111 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.003074/0.003074, allocations: 64.02 kB / 0.8699 GB, free: 2.125 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4352/0.4383, allocations: 151.6 MB / 1.018 GB, free: 10.56 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006144/0.4445, allocations: 3.833 MB / 1.022 GB, free: 6.711 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003036/0.4476, allocations: 1.729 MB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.4478, allocations: 11.94 kB / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.4493, allocations: 0.491 MB / 1.024 GB, free: 4.469 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005389/0.4498, allocations: 218.9 kB / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005536/0.4504, allocations: 216.5 kB / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0005342/0.4509, allocations: 470.4 kB / 1.025 GB, free: 3.582 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006402/0.4516, allocations: 357.4 kB / 1.025 GB, free: 3.23 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002561/0.4519, allocations: 203.3 kB / 1.025 GB, free: 3.031 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004017/0.4523, allocations: 211.2 kB / 1.026 GB, free: 2.824 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.627e-05/0.4523, allocations: 28 kB / 1.026 GB, free: 2.797 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004867/0.4528, allocations: 243.4 kB / 1.026 GB, free: 2.559 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.453, allocations: 131.7 kB / 1.026 GB, free: 2.43 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001942/0.4532, allocations: 167.2 kB / 1.026 GB, free: 2.266 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006796/0.4539, allocations: 0.4945 MB / 1.027 GB, free: 1.77 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4539, allocations: 0 / 1.027 GB, free: 1.77 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.392e-06/0.4539, allocations: 3.938 kB / 1.027 GB, free: 1.766 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.794e-06/0.4539, allocations: 0 / 1.027 GB, free: 1.766 MB / 0.795 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.001113/0.455, allocations: 0.6393 MB / 1.027 GB, free: 1.078 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.4551, allocations: 12.92 kB / 1.027 GB, free: 1.066 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009318/0.456, allocations: 132.4 kB / 1.027 GB, free: 0.9375 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.4564, allocations: 291.6 kB / 1.028 GB, free: 0.6133 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.4564, allocations: 21.03 kB / 1.028 GB, free: 0.5938 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.462e-05/0.4565, allocations: 32.36 kB / 1.028 GB, free: 0.5625 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006909/0.4572, allocations: 459.9 kB / 1.028 GB, free: 76 kB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.4572, allocations: 3.938 kB / 1.028 GB, free: 72 kB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.726e-05/0.4573, allocations: 15.98 kB / 1.028 GB, free: 56 kB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.005e-05/0.4573, allocations: 32.55 kB / 1.028 GB, free: 24 kB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005337/0.4579, allocations: 321.9 kB / 1.028 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002507/0.4604, allocations: 2.181 MB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004145/0.4608, allocations: 255.1 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002575/0.4611, allocations: 116.8 kB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.878e-06/0.4611, allocations: 0 / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.4611, allocations: 30.56 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/0.4611, allocations: 0 / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.000646/0.4618, allocations: 307.5 kB / 1.031 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.4618, allocations: 51.41 kB / 1.031 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.4621, allocations: 266.6 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.4622, allocations: 29.7 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.4623, allocations: 203.8 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.58e-05/0.4624, allocations: 55.28 kB / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.582e-05/0.4625, allocations: 49.86 kB / 1.032 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.4627, allocations: 338.8 kB / 1.032 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.4628, allocations: 52.44 kB / 1.032 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.4629, allocations: 151.9 kB / 1.032 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.4632, allocations: 224.8 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.4633, allocations: 4 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000438/0.4637, allocations: 261.9 kB / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.4637, allocations: 8 kB / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.4637, allocations: 0 / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001663/0.4639, allocations: 28.84 kB / 1.033 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.4641, allocations: 48.3 kB / 1.033 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001255/0.4654, allocations: 1.433 MB / 1.034 GB, free: 9.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/0.4656, allocations: 27.78 kB / 1.034 GB, free: 9.09 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.4656, allocations: 11.94 kB / 1.034 GB, free: 9.078 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.0001944/0.4658, allocations: 173.6 kB / 1.035 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.5e-05/0.4659, allocations: 23.72 kB / 1.035 GB, free: 8.875 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.185e-05/0.4659, allocations: 33.77 kB / 1.035 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.4659, allocations: 4.062 kB / 1.035 GB, free: 8.832 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/0.466, allocations: 4.062 kB / 1.035 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.466, allocations: 0 / 1.035 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009925/0.467, allocations: 0.6947 MB / 1.035 GB, free: 8.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.467, allocations: 4 kB / 1.035 GB, free: 8.039 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.905e-05/0.4671, allocations: 23.92 kB / 1.035 GB, free: 8.016 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-05/0.4672, allocations: 28.78 kB / 1.035 GB, free: 7.984 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.4672, allocations: 4 kB / 1.035 GB, free: 7.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/0.4684, allocations: 1.414 MB / 1.037 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4684, allocations: 0 / 1.037 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003742/0.4688, allocations: 323.3 kB / 1.037 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.4689, allocations: 116.8 kB / 1.037 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.973e-05/0.4689, allocations: 4 kB / 1.037 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.4691, allocations: 15.98 kB / 1.037 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.334e-05/0.4691, allocations: 15.86 kB / 1.037 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.4691, allocations: 8 kB / 1.037 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001995/0.4694, allocations: 198 kB / 1.037 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4694, allocations: 0 / 1.037 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003981/0.4698, allocations: 71.84 kB / 1.037 GB, free: 5.641 MB / 0.8106 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.0001402/0.4699, allocations: 103.2 kB / 1.038 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004702/0.4704, allocations: 274.8 kB / 1.038 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.4704, allocations: 4 kB / 1.038 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.4706, allocations: 186.4 kB / 1.038 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.4711, allocations: 72.56 kB / 1.038 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009309/0.4721, allocations: 0.5804 MB / 1.039 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004557/0.4725, allocations: 0.7909 MB / 1.039 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.388e-05/0.4726, allocations: 19.44 kB / 1.039 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of SimCode: time 2.395e-06/0.4726, allocations: 0 / 1.039 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of Templates: time 0.007005/0.4796, allocations: 4.387 MB / 1.044 GB, free: 15.14 MB / 0.8262 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=400 -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/jenkins1/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