Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.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.0008384/0.0008384, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.0007972/0.0007972, 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.9103/0.9103, allocations: 177.1 MB / 203.5 MB, free: 5.715 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.783/1.783, allocations: 377.8 MB / 0.6228 GB, free: 8.641 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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.774e-06/1.774e-06, allocations: 0 / 0.9822 GB, free: 2.086 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.655e-05/2.832e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.082 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.003796/0.003824, allocations: 3.753 MB / 0.9858 GB, free: 14.31 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.002029/0.005853, allocations: 1.694 MB / 0.9875 GB, free: 12.61 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.006007, allocations: 7.938 kB / 0.9875 GB, free: 12.6 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0008275/0.006834, allocations: 493.9 kB / 0.988 GB, free: 12.12 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0003806/0.007215, allocations: 246.5 kB / 0.9882 GB, free: 11.88 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.007568, allocations: 210.5 kB / 0.9884 GB, free: 11.67 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003696/0.007938, allocations: 486.2 kB / 0.9889 GB, free: 11.2 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004234/0.008361, allocations: 293.4 kB / 0.9891 GB, free: 10.91 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002205/0.008582, allocations: 275.3 kB / 0.9894 GB, free: 10.64 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.008871, allocations: 191.5 kB / 0.9896 GB, free: 10.45 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.398e-05/0.008905, allocations: 28 kB / 0.9896 GB, free: 10.42 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002653/0.00917, allocations: 235.2 kB / 0.9898 GB, free: 10.19 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 9.622e-05/0.009267, allocations: 131.6 kB / 0.99 GB, free: 10.06 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 8.907e-05/0.009356, allocations: 115.8 kB / 0.9901 GB, free: 9.949 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004599/0.009815, allocations: 0.5179 MB / 0.9906 GB, free: 9.43 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.00982, allocations: 4 kB / 0.9906 GB, free: 9.426 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.483e-06/0.009821, allocations: 0 / 0.9906 GB, free: 9.426 MB / 0.948 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.009828, allocations: 0 / 0.9906 GB, free: 9.426 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0007467/0.01057, allocations: 0.5595 MB / 0.9911 GB, free: 8.836 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.01061, allocations: 8.031 kB / 0.9911 GB, free: 8.828 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000491/0.0111, allocations: 144.5 kB / 0.9913 GB, free: 8.688 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.0114, allocations: 229.7 kB / 0.9915 GB, free: 8.438 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.01142, allocations: 25.02 kB / 0.9915 GB, free: 8.414 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.203e-05/0.01145, allocations: 32.36 kB / 0.9916 GB, free: 8.383 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005073/0.01196, allocations: 0.5747 MB / 0.9921 GB, free: 7.738 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.01197, allocations: 4.188 kB / 0.9921 GB, free: 7.734 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.012, allocations: 16.36 kB / 0.9921 GB, free: 7.719 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-05/0.01204, allocations: 36.56 kB / 0.9922 GB, free: 7.684 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003399/0.01238, allocations: 318.3 kB / 0.9925 GB, free: 7.371 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.01367, allocations: 1.509 MB / 0.9939 GB, free: 5.793 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.01393, allocations: 154.7 kB / 0.9941 GB, free: 5.633 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.0141, allocations: 92.81 kB / 0.9942 GB, free: 5.539 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.01411, allocations: 7.922 kB / 0.9942 GB, free: 5.531 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.01414, allocations: 42.5 kB / 0.9942 GB, free: 5.48 MB / 0.948 GB Notification: Performance of pre-optimization done (n=14): time 2.965e-06/0.01414, allocations: 0 / 0.9942 GB, free: 5.48 MB / 0.948 GB Notification: Performance of matching and sorting (n=14): time 0.000496/0.01464, allocations: 218.6 kB / 0.9944 GB, free: 5.258 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.01467, allocations: 55.41 kB / 0.9945 GB, free: 5.191 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.01483, allocations: 232 kB / 0.9947 GB, free: 4.957 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.01484, allocations: 33.7 kB / 0.9947 GB, free: 4.918 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 9.194e-05/0.01493, allocations: 216.1 kB / 0.995 GB, free: 4.703 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/0.01496, allocations: 51.59 kB / 0.995 GB, free: 4.652 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.173e-05/0.01501, allocations: 45.91 kB / 0.995 GB, free: 4.598 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.128e-05/0.01509, allocations: 334.8 kB / 0.9954 GB, free: 4.262 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.639e-05/0.01516, allocations: 56.44 kB / 0.9954 GB, free: 4.207 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.72e-05/0.01526, allocations: 144.1 kB / 0.9956 GB, free: 4.027 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.01544, allocations: 218 kB / 0.9958 GB, free: 3.777 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.01544, allocations: 4 kB / 0.9958 GB, free: 3.773 MB / 0.948 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002866/0.01573, allocations: 265.9 kB / 0.996 GB, free: 3.504 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.01574, allocations: 4 kB / 0.996 GB, free: 3.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.01575, allocations: 4.375 kB / 0.996 GB, free: 3.496 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001459/0.0159, allocations: 32.84 kB / 0.9961 GB, free: 3.461 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.01601, allocations: 43.92 kB / 0.9961 GB, free: 3.418 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000749/0.01676, allocations: 1.292 MB / 0.9974 GB, free: 2.027 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.228e-05/0.01685, allocations: 27.77 kB / 0.9974 GB, free: 2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.01686, allocations: 16.14 kB / 0.9974 GB, free: 1.984 MB / 0.948 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.0001312/0.01699, allocations: 169.7 kB / 0.9976 GB, free: 1.809 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.865e-05/0.01702, allocations: 27.84 kB / 0.9976 GB, free: 1.781 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.379e-05/0.01705, allocations: 21.47 kB / 0.9976 GB, free: 1.758 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.01705, allocations: 3.938 kB / 0.9976 GB, free: 1.754 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.01705, allocations: 4 kB / 0.9976 GB, free: 1.75 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.01706, allocations: 3.984 kB / 0.9976 GB, free: 1.746 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005569/0.01761, allocations: 0.5583 MB / 0.9982 GB, free: 1.129 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.01762, allocations: 4 kB / 0.9982 GB, free: 1.125 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.477e-05/0.01766, allocations: 19.94 kB / 0.9982 GB, free: 1.105 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.544e-05/0.01773, allocations: 24.84 kB / 0.9982 GB, free: 1.078 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.01774, allocations: 8 kB / 0.9982 GB, free: 1.07 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006359/0.01837, allocations: 1.296 MB / 0.9995 GB, free: 15.67 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.01838, allocations: 0 / 0.9995 GB, free: 15.67 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002158/0.01859, allocations: 309.2 kB / 0.9998 GB, free: 15.33 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/0.01864, allocations: 35.78 kB / 0.9998 GB, free: 15.29 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.191e-05/0.01865, allocations: 4 kB / 0.9998 GB, free: 15.29 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.741e-05/0.01874, allocations: 15.98 kB / 0.9998 GB, free: 15.27 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.107e-05/0.01876, allocations: 11.92 kB / 0.9998 GB, free: 15.26 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.01877, allocations: 16.09 kB / 0.9999 GB, free: 15.25 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 9.482e-05/0.01887, allocations: 161.6 kB / 1 GB, free: 15.09 MB / 0.9636 GB Notification: Performance of sort global known variables: time 4e-08/0.01887, allocations: 0 / 1 GB, free: 15.09 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002676/0.01913, allocations: 87.72 kB / 1 GB, free: 15 MB / 0.9636 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.0001061/0.01924, allocations: 99.25 kB / 1 GB, free: 14.9 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003344/0.01957, allocations: 273.1 kB / 1 GB, free: 14.62 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.01958, allocations: 4 kB / 1 GB, free: 14.62 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.01969, allocations: 170.6 kB / 1.001 GB, free: 14.44 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.02001, allocations: 60.94 kB / 1.001 GB, free: 14.38 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007418/0.02075, allocations: 0.5613 MB / 1.001 GB, free: 13.77 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.02088, allocations: 194.1 kB / 1.001 GB, free: 13.56 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.278e-05/0.02092, allocations: 20.5 kB / 1.001 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of SimCode: time 7.91e-07/0.02092, allocations: 3.938 kB / 1.001 GB, free: 13.54 MB / 0.9636 GB Notification: Performance of Templates: time 0.004369/0.02529, allocations: 4.34 MB / 1.006 GB, free: 9.207 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.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: 7.678567346185446]