Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008043/0.0008041, allocations: 92.62 kB / 16.02 MB, free: 80 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.0008991/0.0008991, allocations: 175.7 kB / 16.92 MB, free: 6.652 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.464/1.464, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.42/2.42, allocations: 390.9 MB / 0.667 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.0003698, allocations: 11.98 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7329/0.7333, allocations: 142.4 MB / 0.9557 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003281/0.7366, allocations: 2.759 MB / 0.9584 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001816/0.7385, allocations: 1.293 MB / 0.9597 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.7386, allocations: 7.531 kB / 0.9597 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.7388, allocations: 45.08 kB / 0.9597 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003576/0.7392, allocations: 133.5 kB / 0.9598 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003528/0.7396, allocations: 120.8 kB / 0.96 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.74, allocations: 435.5 kB / 0.9604 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000296/0.7403, allocations: 244.8 kB / 0.9606 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.7404, allocations: 100.3 kB / 0.9607 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.7407, allocations: 127.7 kB / 0.9608 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.849e-05/0.7407, allocations: 14.25 kB / 0.9608 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003239/0.7411, allocations: 211 kB / 0.961 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.842e-05/0.7411, allocations: 66.66 kB / 0.9611 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.7413, allocations: 122.6 kB / 0.9612 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.7416, allocations: 263.9 kB / 0.9615 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.7416, allocations: 1 kB / 0.9615 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.743e-06/0.7416, allocations: 0 / 0.9615 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.7416, allocations: 0 / 0.9615 GB, free: 3.355 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006652/0.7423, allocations: 483 kB / 0.9619 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.7423, allocations: 9.188 kB / 0.9619 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005696/0.7429, allocations: 81.58 kB / 0.962 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.7432, allocations: 249.3 kB / 0.9623 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.7432, allocations: 12.53 kB / 0.9623 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.7432, allocations: 15.97 kB / 0.9623 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004451/0.7437, allocations: 313.6 kB / 0.9626 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.7437, allocations: 5 kB / 0.9626 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.7437, allocations: 6.312 kB / 0.9626 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-05/0.7438, allocations: 22.14 kB / 0.9626 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.7441, allocations: 196.4 kB / 0.9628 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.7453, allocations: 1.46 MB / 0.9642 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.7455, allocations: 180.4 kB / 0.9644 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.487e-05/0.7456, allocations: 32.12 kB / 0.9644 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.116e-06/0.7456, allocations: 1.344 kB / 0.9644 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.568e-05/0.7456, allocations: 35.62 kB / 0.9645 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.7457, allocations: 0 / 0.9645 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004375/0.7461, allocations: 230.8 kB / 0.9647 GB, free: 424 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.609e-05/0.7461, allocations: 52.69 kB / 0.9647 GB, free: 360 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.7463, allocations: 195.3 kB / 0.9649 GB, free: 208 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.7463, allocations: 26.8 kB / 0.965 GB, free: 176 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.713e-05/0.7464, allocations: 160.2 kB / 0.9651 GB, free: 24 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.368e-05/0.7464, allocations: 31.22 kB / 0.9651 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.43e-05/0.7465, allocations: 22.45 kB / 0.9652 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0003479/0.7468, allocations: 337.7 kB / 0.9655 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.127e-05/0.7469, allocations: 34.83 kB / 0.9655 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.747, allocations: 99.22 kB / 0.9656 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.7472, allocations: 142.1 kB / 0.9657 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.7472, allocations: 9.297 kB / 0.9658 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000296/0.7475, allocations: 186.7 kB / 0.9659 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.7476, allocations: 6.75 kB / 0.9659 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.7476, allocations: 1.25 kB / 0.9659 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/0.7477, allocations: 29.97 kB / 0.966 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.7479, allocations: 26.41 kB / 0.966 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/0.749, allocations: 1.322 MB / 0.9673 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.7492, allocations: 17.62 kB / 0.9673 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.7492, allocations: 6.219 kB / 0.9673 GB, free: 13.88 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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.000136/0.7493, allocations: 147 kB / 0.9674 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.204e-05/0.7494, allocations: 23.48 kB / 0.9675 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.14e-05/0.7494, allocations: 16.81 kB / 0.9675 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.7494, allocations: 5.25 kB / 0.9675 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.7494, allocations: 1.219 kB / 0.9675 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.7494, allocations: 4.109 kB / 0.9675 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005026/0.75, allocations: 453.8 kB / 0.9679 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.75, allocations: 0 / 0.9679 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.353e-05/0.75, allocations: 9.906 kB / 0.9679 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.489e-05/0.7501, allocations: 24.41 kB / 0.968 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.7501, allocations: 0 / 0.968 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.7512, allocations: 1.31 MB / 0.9692 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.7512, allocations: 4.031 kB / 0.9692 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000218/0.7514, allocations: 220.8 kB / 0.9695 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.677e-05/0.7515, allocations: 99.92 kB / 0.9695 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.7515, allocations: 7.922 kB / 0.9696 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.7516, allocations: 3.781 kB / 0.9696 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.76e-05/0.7517, allocations: 3.812 kB / 0.9696 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.7517, allocations: 3.156 kB / 0.9696 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001799/0.7518, allocations: 153.6 kB / 0.9697 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7519, allocations: 0 / 0.9697 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003564/0.7522, allocations: 52.22 kB / 0.9698 GB, free: 11.47 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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.0001129/0.7523, allocations: 103.1 kB / 0.9699 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004698/0.7528, allocations: 204.3 kB / 0.9701 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.7528, allocations: 4.188 kB / 0.9701 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.753, allocations: 144.5 kB / 0.9702 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003696/0.7534, allocations: 31.09 kB / 0.9702 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007092/0.7541, allocations: 485.9 kB / 0.9707 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.7545, allocations: 0.748 MB / 0.9714 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.073e-05/0.7546, allocations: 15.59 kB / 0.9714 GB, free: 9.945 MB / 0.7325 GB Notification: Performance of SimCode: time 3.81e-07/0.7546, allocations: 0 / 0.9714 GB, free: 9.945 MB / 0.7325 GB Notification: Performance of Templates: time 0.005265/0.7598, allocations: 2.94 MB / 0.9743 GB, free: 8.438 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches