Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008618/0.0008618, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009747/0.0009747, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9005/0.9005, allocations: 177.1 MB / 203.5 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.755/1.755, allocations: 377.9 MB / 0.6228 GB, free: 8.633 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 0.9822 GB, free: 2.078 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.98e-05/2.126e-05, allocations: 5.375 kB / 0.9822 GB, free: 2.074 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.002917/0.002938, allocations: 3.047 MB / 0.9851 GB, free: 15.02 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.004213, allocations: 1.313 MB / 0.9864 GB, free: 13.7 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.138e-05/0.004305, allocations: 7.938 kB / 0.9864 GB, free: 13.69 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0006102/0.004915, allocations: 330.6 kB / 0.9867 GB, free: 13.36 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0002286/0.005143, allocations: 159 kB / 0.9869 GB, free: 13.21 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001916/0.005335, allocations: 139.6 kB / 0.987 GB, free: 13.07 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0005191/0.005854, allocations: 314.8 kB / 0.9873 GB, free: 12.76 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002926/0.006147, allocations: 172.7 kB / 0.9875 GB, free: 12.59 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.006283, allocations: 175.6 kB / 0.9877 GB, free: 12.42 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000214/0.006497, allocations: 127.6 kB / 0.9878 GB, free: 12.3 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.419e-05/0.006521, allocations: 24 kB / 0.9878 GB, free: 12.27 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.006685, allocations: 147.6 kB / 0.9879 GB, free: 12.13 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 6.824e-05/0.006753, allocations: 91.7 kB / 0.988 GB, free: 12.04 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.799e-05/0.006811, allocations: 75.84 kB / 0.9881 GB, free: 11.96 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002908/0.007102, allocations: 350.9 kB / 0.9884 GB, free: 11.62 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.007104, allocations: 0 / 0.9884 GB, free: 11.62 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.383e-06/0.007106, allocations: 3.938 kB / 0.9884 GB, free: 11.62 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.00711, allocations: 0 / 0.9884 GB, free: 11.62 MB / 0.948 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.0005275/0.007638, allocations: 449.5 kB / 0.9889 GB, free: 11.14 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.007676, allocations: 12.03 kB / 0.9889 GB, free: 11.13 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003081/0.007984, allocations: 80.72 kB / 0.989 GB, free: 11.05 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.008181, allocations: 185.5 kB / 0.9891 GB, free: 10.85 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.008194, allocations: 12.75 kB / 0.9892 GB, free: 10.84 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.828e-05/0.008213, allocations: 16.38 kB / 0.9892 GB, free: 10.82 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.008533, allocations: 377.3 kB / 0.9895 GB, free: 10.41 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.008542, allocations: 4.188 kB / 0.9895 GB, free: 10.41 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.008561, allocations: 8.375 kB / 0.9895 GB, free: 10.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.008587, allocations: 24.3 kB / 0.9896 GB, free: 10.38 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002043/0.008792, allocations: 193 kB / 0.9897 GB, free: 10.19 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007726/0.009564, allocations: 0.985 MB / 0.9907 GB, free: 9.148 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.009734, allocations: 98.55 kB / 0.9908 GB, free: 9.043 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.705e-05/0.009771, allocations: 32.94 kB / 0.9908 GB, free: 9.008 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-06/0.009778, allocations: 3.984 kB / 0.9908 GB, free: 9.004 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.009803, allocations: 42.5 kB / 0.9909 GB, free: 8.953 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.009804, allocations: 0 / 0.9909 GB, free: 8.953 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0003582/0.01016, allocations: 146.3 kB / 0.991 GB, free: 8.801 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.0102, allocations: 55.41 kB / 0.9911 GB, free: 8.734 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.01034, allocations: 186.9 kB / 0.9913 GB, free: 8.543 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.01036, allocations: 33.7 kB / 0.9913 GB, free: 8.504 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 8.958e-05/0.01045, allocations: 168 kB / 0.9914 GB, free: 8.336 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.01046, allocations: 23.8 kB / 0.9915 GB, free: 8.312 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/0.01051, allocations: 37.66 kB / 0.9915 GB, free: 8.27 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.079e-05/0.0106, allocations: 322.8 kB / 0.9918 GB, free: 7.945 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.452e-05/0.01064, allocations: 35.98 kB / 0.9918 GB, free: 7.91 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.991e-05/0.01071, allocations: 100.5 kB / 0.9919 GB, free: 7.781 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.01083, allocations: 156.4 kB / 0.9921 GB, free: 7.598 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.01084, allocations: 0 / 0.9921 GB, free: 7.598 MB / 0.948 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001989/0.01104, allocations: 190.3 kB / 0.9923 GB, free: 7.402 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.01105, allocations: 12.03 kB / 0.9923 GB, free: 7.391 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.01106, allocations: 4 kB / 0.9923 GB, free: 7.387 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001271/0.01118, allocations: 24.84 kB / 0.9923 GB, free: 7.359 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.232e-05/0.01125, allocations: 27.92 kB / 0.9923 GB, free: 7.332 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006647/0.01191, allocations: 1.292 MB / 0.9936 GB, free: 5.938 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.479e-05/0.01197, allocations: 28.03 kB / 0.9936 GB, free: 5.91 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.01198, allocations: 4.062 kB / 0.9936 GB, free: 5.906 MB / 0.948 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 8.625e-05/0.01207, allocations: 141.8 kB / 0.9938 GB, free: 5.758 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.955e-05/0.01209, allocations: 15.95 kB / 0.9938 GB, free: 5.742 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.633e-05/0.0121, allocations: 17.45 kB / 0.9938 GB, free: 5.723 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.01211, allocations: 3.938 kB / 0.9938 GB, free: 5.719 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.01211, allocations: 0 / 0.9938 GB, free: 5.719 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.01211, allocations: 0 / 0.9938 GB, free: 5.719 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005493/0.01266, allocations: 374.8 kB / 0.9942 GB, free: 5.312 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.01266, allocations: 4 kB / 0.9942 GB, free: 5.309 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.873e-05/0.01268, allocations: 4 kB / 0.9942 GB, free: 5.305 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-05/0.01274, allocations: 28.78 kB / 0.9942 GB, free: 5.273 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.01274, allocations: 0 / 0.9942 GB, free: 5.273 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005366/0.01328, allocations: 1.28 MB / 0.9954 GB, free: 3.891 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01328, allocations: 4.156 kB / 0.9954 GB, free: 3.887 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001242/0.0134, allocations: 212.2 kB / 0.9956 GB, free: 3.66 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.771e-05/0.01343, allocations: 23.89 kB / 0.9957 GB, free: 3.637 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.824e-06/0.01344, allocations: 0 / 0.9957 GB, free: 3.637 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.395e-05/0.0135, allocations: 7.938 kB / 0.9957 GB, free: 3.629 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.452e-05/0.01352, allocations: 7.984 kB / 0.9957 GB, free: 3.621 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.01352, allocations: 4 kB / 0.9957 GB, free: 3.617 MB / 0.948 GB Notification: Performance of sorting global known variables: time 6.533e-05/0.01359, allocations: 132.3 kB / 0.9958 GB, free: 3.488 MB / 0.948 GB Notification: Performance of sort global known variables: time 4e-08/0.01359, allocations: 0 / 0.9958 GB, free: 3.488 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001995/0.01379, allocations: 51.89 kB / 0.9959 GB, free: 3.438 MB / 0.948 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 7.34e-05/0.01386, allocations: 103.2 kB / 0.996 GB, free: 3.328 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002329/0.01409, allocations: 206.5 kB / 0.9962 GB, free: 3.113 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.0141, allocations: 0 / 0.9962 GB, free: 3.113 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 7.065e-05/0.01417, allocations: 138.9 kB / 0.9963 GB, free: 2.965 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002328/0.0144, allocations: 40.47 kB / 0.9963 GB, free: 2.926 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004332/0.01483, allocations: 382.7 kB / 0.9967 GB, free: 2.52 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.612e-05/0.01492, allocations: 139.8 kB / 0.9968 GB, free: 2.363 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.755e-05/0.01495, allocations: 16.5 kB / 0.9968 GB, free: 2.348 MB / 0.948 GB Notification: Performance of SimCode: time 9.92e-07/0.01495, allocations: 0 / 0.9968 GB, free: 2.348 MB / 0.948 GB Notification: Performance of Templates: time 0.003015/0.01796, allocations: 2.985 MB / 0.9998 GB, free: 15.38 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.825035519897938]