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.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.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.001638/0.001638, allocations: 104.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.001688/0.001688, 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.339/1.339, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.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.193/2.193, allocations: 390.3 MB / 0.6653 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002416/0.002416, allocations: 61.53 kB / 0.8132 GB, free: 33.11 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2703, allocations: 140.4 MB / 0.9503 GB, free: 8.906 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005115/0.2755, allocations: 3.071 MB / 0.9533 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002248/0.2778, allocations: 1.332 MB / 0.9546 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002294/0.278, allocations: 7.938 kB / 0.9546 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.2792, allocations: 334.7 kB / 0.9549 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004731/0.2797, allocations: 143.3 kB / 0.955 GB, free: 4 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004461/0.2802, allocations: 139.6 kB / 0.9552 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004125/0.2806, allocations: 299 kB / 0.9555 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004746/0.2811, allocations: 236.5 kB / 0.9557 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.2813, allocations: 123.5 kB / 0.9558 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/0.2816, allocations: 139.5 kB / 0.9559 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.2817, allocations: 20 kB / 0.9559 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003561/0.2821, allocations: 167.6 kB / 0.9561 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.515e-05/0.2822, allocations: 79.8 kB / 0.9562 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.2823, allocations: 111.5 kB / 0.9563 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004433/0.2827, allocations: 335 kB / 0.9566 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2828, allocations: 0 / 0.9566 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.412e-06/0.2828, allocations: 0 / 0.9566 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.207e-05/0.2828, allocations: 0 / 0.9566 GB, free: 2.379 MB / 0.7325 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.0009324/0.2837, allocations: 0.5185 MB / 0.9571 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.2838, allocations: 8.031 kB / 0.9571 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006303/0.2844, allocations: 76.58 kB / 0.9572 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.2847, allocations: 250 kB / 0.9574 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.2848, allocations: 12.75 kB / 0.9574 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.2848, allocations: 24.36 kB / 0.9575 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004299/0.2852, allocations: 303.3 kB / 0.9578 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.2853, allocations: 0 / 0.9578 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.2853, allocations: 11.98 kB / 0.9578 GB, free: 1.074 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.995e-05/0.2853, allocations: 20.36 kB / 0.9578 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003051/0.2856, allocations: 196.9 kB / 0.958 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.2872, allocations: 1.456 MB / 0.9594 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.2875, allocations: 171.7 kB / 0.9596 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.98e-05/0.2876, allocations: 32.91 kB / 0.9596 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.2876, allocations: 3.984 kB / 0.9596 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.2876, allocations: 42.55 kB / 0.9596 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.2877, allocations: 0 / 0.9596 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0004747/0.2881, allocations: 223.5 kB / 0.9599 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.2882, allocations: 59.41 kB / 0.9599 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.2884, allocations: 198.4 kB / 0.9601 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.2884, allocations: 25.7 kB / 0.9601 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 8.717e-05/0.2885, allocations: 159.6 kB / 0.9603 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.2885, allocations: 27.64 kB / 0.9603 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-05/0.2886, allocations: 37.62 kB / 0.9603 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.99e-05/0.2887, allocations: 334.7 kB / 0.9607 GB, free: 13.84 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.101e-05/0.2888, allocations: 35.98 kB / 0.9607 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.823e-05/0.2889, allocations: 104.5 kB / 0.9608 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.289, allocations: 144.5 kB / 0.9609 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.289, allocations: 4 kB / 0.9609 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003013/0.2894, allocations: 190.1 kB / 0.9611 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.2894, allocations: 4 kB / 0.9611 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.2894, allocations: 4.312 kB / 0.9611 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001705/0.2896, allocations: 28.83 kB / 0.9611 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.2897, allocations: 32.16 kB / 0.9612 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.2908, allocations: 1.426 MB / 0.9626 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/0.291, allocations: 15.84 kB / 0.9626 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.291, allocations: 8 kB / 0.9626 GB, free: 11.65 MB / 0.7481 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.0001519/0.2912, allocations: 149.7 kB / 0.9627 GB, free: 11.49 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.718e-05/0.2912, allocations: 15.81 kB / 0.9628 GB, free: 11.48 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.494e-05/0.2912, allocations: 21.39 kB / 0.9628 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2913, allocations: 4.062 kB / 0.9628 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2913, allocations: 0 / 0.9628 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.2913, allocations: 0 / 0.9628 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005414/0.2918, allocations: 447.2 kB / 0.9632 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2918, allocations: 3.938 kB / 0.9632 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.062e-05/0.2919, allocations: 4 kB / 0.9632 GB, free: 10.95 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.113e-05/0.292, allocations: 28.84 kB / 0.9632 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.292, allocations: 0 / 0.9632 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009642/0.293, allocations: 1.422 MB / 0.9646 GB, free: 9.352 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.293, allocations: 96 / 0.9646 GB, free: 9.352 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002163/0.2932, allocations: 220 kB / 0.9648 GB, free: 9.117 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.168e-05/0.2933, allocations: 93 kB / 0.9649 GB, free: 9.008 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.2933, allocations: 4.062 kB / 0.9649 GB, free: 9.004 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.2934, allocations: 4 kB / 0.9649 GB, free: 9 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.278e-05/0.2935, allocations: 7.938 kB / 0.9649 GB, free: 8.992 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/0.2935, allocations: 4 kB / 0.9649 GB, free: 8.988 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000131/0.2936, allocations: 152.7 kB / 0.9651 GB, free: 8.84 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2e-07/0.2936, allocations: 0 / 0.9651 GB, free: 8.84 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003468/0.294, allocations: 47.84 kB / 0.9651 GB, free: 8.793 MB / 0.7481 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.0001534/0.2941, allocations: 107.2 kB / 0.9652 GB, free: 8.68 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003873/0.2945, allocations: 210.5 kB / 0.9654 GB, free: 8.461 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2945, allocations: 0 / 0.9654 GB, free: 8.461 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001593/0.2947, allocations: 150.6 kB / 0.9656 GB, free: 8.301 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004021/0.2951, allocations: 35.2 kB / 0.9656 GB, free: 8.27 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000734/0.2959, allocations: 390.7 kB / 0.966 GB, free: 7.859 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.2962, allocations: 0.7552 MB / 0.9667 GB, free: 7.078 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.141e-05/0.2963, allocations: 15.44 kB / 0.9667 GB, free: 7.062 MB / 0.7481 GB Notification: Performance of SimCode: time 5.21e-07/0.2963, allocations: 0 / 0.9667 GB, free: 7.062 MB / 0.7481 GB Notification: Performance of Templates: time 0.005314/0.3016, allocations: 2.968 MB / 0.9696 GB, free: 4.102 MB / 0.7481 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