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.001572/0.001572, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 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.002128/0.002128, allocations: 218.8 kB / 23.01 MB, free: 4.609 MB / 14.72 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 1.487/1.487, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.239/3.239, allocations: 0.49 GB / 0.7958 GB, free: 33.35 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002127, allocations: 67.28 kB / 1.155 GB, free: 25.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4038, allocations: 176.1 MB / 1.327 GB, free: 1.438 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006676/0.4105, allocations: 3.998 MB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003417/0.4139, allocations: 1.842 MB / 1.333 GB, free: 11.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002171/0.4141, allocations: 11.94 kB / 1.333 GB, free: 11.56 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001552/0.4157, allocations: 0.5073 MB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006031/0.4163, allocations: 222.9 kB / 1.334 GB, free: 10.84 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006033/0.4169, allocations: 217 kB / 1.334 GB, free: 10.62 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006288/0.4175, allocations: 466.5 kB / 1.334 GB, free: 10.17 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005705/0.4181, allocations: 289.4 kB / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002656/0.4183, allocations: 203.3 kB / 1.335 GB, free: 9.68 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004658/0.4188, allocations: 235.2 kB / 1.335 GB, free: 9.449 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.4188, allocations: 28 kB / 1.335 GB, free: 9.422 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000521/0.4194, allocations: 255.4 kB / 1.335 GB, free: 9.172 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.4195, allocations: 131.6 kB / 1.335 GB, free: 9.043 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.4197, allocations: 175.1 kB / 1.335 GB, free: 8.871 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006974/0.4204, allocations: 0.5059 MB / 1.336 GB, free: 8.363 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.4204, allocations: 0 / 1.336 GB, free: 8.363 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.964e-06/0.4204, allocations: 0 / 1.336 GB, free: 8.363 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.318e-06/0.4204, allocations: 0 / 1.336 GB, free: 8.363 MB / 1.029 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.001122/0.4215, allocations: 0.5635 MB / 1.336 GB, free: 7.77 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.4216, allocations: 8.031 kB / 1.336 GB, free: 7.762 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008899/0.4225, allocations: 144.5 kB / 1.337 GB, free: 7.621 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000442/0.4229, allocations: 242.5 kB / 1.337 GB, free: 7.359 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.4229, allocations: 21.03 kB / 1.337 GB, free: 7.336 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.227e-05/0.423, allocations: 28.36 kB / 1.337 GB, free: 7.309 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007096/0.4237, allocations: 459.8 kB / 1.337 GB, free: 6.824 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.4237, allocations: 3.984 kB / 1.337 GB, free: 6.82 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.87e-05/0.4238, allocations: 15.98 kB / 1.337 GB, free: 6.805 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.182e-05/0.4238, allocations: 28.64 kB / 1.337 GB, free: 6.777 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005335/0.4243, allocations: 318.3 kB / 1.338 GB, free: 6.469 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002535/0.4269, allocations: 2.151 MB / 1.34 GB, free: 4.109 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.4273, allocations: 162.7 kB / 1.34 GB, free: 3.941 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/0.4275, allocations: 96.98 kB / 1.34 GB, free: 3.844 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.4276, allocations: 4 kB / 1.34 GB, free: 3.84 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.4276, allocations: 42.56 kB / 1.34 GB, free: 3.789 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.4276, allocations: 0 / 1.34 GB, free: 3.789 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0006324/0.4282, allocations: 221.6 kB / 1.34 GB, free: 3.566 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.4283, allocations: 51.41 kB / 1.34 GB, free: 3.504 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000324/0.4286, allocations: 269.8 kB / 1.341 GB, free: 3.234 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.4286, allocations: 33.7 kB / 1.341 GB, free: 3.195 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.4288, allocations: 212.2 kB / 1.341 GB, free: 2.98 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.636e-05/0.4289, allocations: 55.59 kB / 1.341 GB, free: 2.926 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.429, allocations: 49.89 kB / 1.341 GB, free: 2.867 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001775/0.4291, allocations: 338.8 kB / 1.341 GB, free: 2.527 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.4292, allocations: 52.44 kB / 1.341 GB, free: 2.477 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.4294, allocations: 148 kB / 1.341 GB, free: 2.293 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003013/0.4297, allocations: 212.7 kB / 1.342 GB, free: 2.047 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4297, allocations: 0 / 1.342 GB, free: 2.047 MB / 1.029 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004452/0.4302, allocations: 272.3 kB / 1.342 GB, free: 1.773 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.4302, allocations: 4 kB / 1.342 GB, free: 1.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.4302, allocations: 4 kB / 1.342 GB, free: 1.766 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001814/0.4304, allocations: 33.22 kB / 1.342 GB, free: 1.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.4306, allocations: 47.91 kB / 1.342 GB, free: 1.684 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.4318, allocations: 1.33 MB / 1.343 GB, free: 248 kB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.432, allocations: 27.78 kB / 1.343 GB, free: 220 kB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.432, allocations: 8 kB / 1.343 GB, free: 212 kB / 1.029 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.0001898/0.4322, allocations: 169.6 kB / 1.343 GB, free: 32 kB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.269e-05/0.4323, allocations: 27.86 kB / 1.344 GB, free: 4 kB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.098e-05/0.4323, allocations: 33.86 kB / 1.344 GB, free: 15.97 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.4323, allocations: 0 / 1.344 GB, free: 15.97 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4323, allocations: 0 / 1.344 GB, free: 15.97 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4323, allocations: 0 / 1.344 GB, free: 15.97 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009778/0.4333, allocations: 0.6704 MB / 1.344 GB, free: 15.21 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.4333, allocations: 11.92 kB / 1.344 GB, free: 15.2 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.487e-05/0.4334, allocations: 16.19 kB / 1.344 GB, free: 15.19 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.672e-05/0.4335, allocations: 32.72 kB / 1.344 GB, free: 15.15 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.4335, allocations: 7.938 kB / 1.344 GB, free: 15.14 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.4346, allocations: 1.315 MB / 1.346 GB, free: 13.72 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.4346, allocations: 0 / 1.346 GB, free: 13.72 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003772/0.435, allocations: 313.4 kB / 1.346 GB, free: 13.38 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.4351, allocations: 51.77 kB / 1.346 GB, free: 13.32 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/0.4351, allocations: 0 / 1.346 GB, free: 13.32 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001669/0.4353, allocations: 19.98 kB / 1.346 GB, free: 13.3 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.4353, allocations: 15.86 kB / 1.346 GB, free: 13.29 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.4353, allocations: 8 kB / 1.346 GB, free: 13.28 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002089/0.4355, allocations: 189.2 kB / 1.346 GB, free: 13.1 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4355, allocations: 0 / 1.346 GB, free: 13.1 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004069/0.436, allocations: 83.84 kB / 1.346 GB, free: 13.02 MB / 1.045 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.0001438/0.4361, allocations: 99.25 kB / 1.346 GB, free: 12.91 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005538/0.4366, allocations: 270.9 kB / 1.347 GB, free: 12.63 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4367, allocations: 128 / 1.347 GB, free: 12.63 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.4369, allocations: 178.6 kB / 1.347 GB, free: 12.44 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004833/0.4374, allocations: 54.16 kB / 1.347 GB, free: 12.39 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.4384, allocations: 0.5994 MB / 1.347 GB, free: 11.74 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.4389, allocations: 0.7948 MB / 1.348 GB, free: 10.92 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.379e-05/0.4389, allocations: 23.44 kB / 1.348 GB, free: 10.9 MB / 1.045 GB Notification: Performance of SimCode: time 7.21e-07/0.4389, allocations: 0 / 1.348 GB, free: 10.9 MB / 1.045 GB Notification: Performance of Templates: time 0.007454/0.4464, allocations: 4.418 MB / 1.352 GB, free: 6.488 MB / 1.045 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/jenkins1/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: 12.838169261987787]