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.0009551/0.0009551, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001443/0.002398, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0009155/0.0009155, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009483/0.001864, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.8944/0.8944, allocations: 177.2 MB / 189.8 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08725/0.9817, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.805/1.805, allocations: 378.4 MB / 0.6079 GB, free: 7.691 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4506/2.256, allocations: 123.3 MB / 0.7283 GB, free: 5.715 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.272e-06/1.272e-06, allocations: 0 / 0.7296 GB, free: 4.43 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.995e-05/2.122e-05, allocations: 4.562 kB / 0.7296 GB, free: 4.426 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.003311/0.003333, allocations: 3.061 MB / 0.7326 GB, free: 1.402 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001468/0.0048, allocations: 1.163 MB / 0.7338 GB, free: 248 kB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.004924, allocations: 12.44 kB / 0.7338 GB, free: 236 kB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0003429/0.005267, allocations: 140.6 kB / 0.7339 GB, free: 96 kB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0002907/0.005557, allocations: 228 kB / 0.7341 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002543/0.005812, allocations: 165.2 kB / 0.7343 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0004207/0.006232, allocations: 0.5138 MB / 0.7348 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000291/0.006523, allocations: 285.4 kB / 0.735 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.006793, allocations: 311.2 kB / 0.7353 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000304/0.007097, allocations: 215.4 kB / 0.7355 GB, free: 14.4 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 3.605e-05/0.007133, allocations: 28.53 kB / 0.7356 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001697/0.007303, allocations: 105.3 kB / 0.7357 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 8.899e-05/0.007392, allocations: 127.6 kB / 0.7358 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 8.037e-05/0.007472, allocations: 99.81 kB / 0.7359 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002846/0.007757, allocations: 291 kB / 0.7362 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.007767, allocations: 0.9062 kB / 0.7362 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of FrontEnd: time 7.31e-07/0.007768, allocations: 7.938 kB / 0.7362 GB, free: 13.76 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.014e-05/0.007778, allocations: 0 / 0.7362 GB, free: 13.76 MB / 0.7136 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.0006388/0.008417, allocations: 0.5918 MB / 0.7368 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.857e-05/0.008445, allocations: 8.031 kB / 0.7368 GB, free: 13.13 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005678/0.009013, allocations: 259.3 kB / 0.737 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.009226, allocations: 215.3 kB / 0.7372 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.00924, allocations: 21.03 kB / 0.7372 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/0.009271, allocations: 36.3 kB / 0.7373 GB, free: 12.57 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.009568, allocations: 425.1 kB / 0.7377 GB, free: 12.09 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.009577, allocations: 4.188 kB / 0.7377 GB, free: 12.09 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.132e-05/0.009599, allocations: 16.38 kB / 0.7377 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.303e-05/0.009632, allocations: 28.58 kB / 0.7377 GB, free: 12.04 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001214/0.009753, allocations: 101.6 kB / 0.7378 GB, free: 11.94 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008922/0.01065, allocations: 1.325 MB / 0.7391 GB, free: 10.57 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.0108, allocations: 94.61 kB / 0.7392 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.626e-05/0.01088, allocations: 58.09 kB / 0.7393 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.01089, allocations: 7.984 kB / 0.7393 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.01091, allocations: 34.56 kB / 0.7393 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=14): time 2.164e-06/0.01091, allocations: 0.5312 kB / 0.7393 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14): time 0.0002337/0.01115, allocations: 123.6 kB / 0.7394 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.107e-05/0.01117, allocations: 56.09 kB / 0.7395 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.01128, allocations: 223.2 kB / 0.7397 GB, free: 9.93 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.01129, allocations: 26.92 kB / 0.7397 GB, free: 9.898 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.925e-05/0.01136, allocations: 204.1 kB / 0.7399 GB, free: 9.695 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.01138, allocations: 51.56 kB / 0.74 GB, free: 9.645 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.754e-05/0.01143, allocations: 49.88 kB / 0.74 GB, free: 9.586 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.947e-05/0.0115, allocations: 331.5 kB / 0.7403 GB, free: 9.254 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.306e-05/0.01152, allocations: 16.47 kB / 0.7403 GB, free: 9.238 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.181e-05/0.01158, allocations: 118.6 kB / 0.7404 GB, free: 9.086 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/0.0117, allocations: 160.4 kB / 0.7406 GB, free: 8.895 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.0117, allocations: 9.156 kB / 0.7406 GB, free: 8.887 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0001654/0.01187, allocations: 165.2 kB / 0.7408 GB, free: 8.719 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.01188, allocations: 8.938 kB / 0.7408 GB, free: 8.711 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.01189, allocations: 0 / 0.7408 GB, free: 8.711 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001274/0.01201, allocations: 35.86 kB / 0.7408 GB, free: 8.676 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.01213, allocations: 59.91 kB / 0.7409 GB, free: 8.617 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005219/0.01265, allocations: 1.189 MB / 0.742 GB, free: 7.332 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.172e-05/0.01272, allocations: 20.5 kB / 0.742 GB, free: 7.312 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.848e-06/0.01273, allocations: 11.94 kB / 0.7421 GB, free: 7.301 MB / 0.7136 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 7.028e-05/0.0128, allocations: 130 kB / 0.7422 GB, free: 7.164 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.311e-05/0.01282, allocations: 15.98 kB / 0.7422 GB, free: 7.148 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.681e-05/0.01285, allocations: 27.89 kB / 0.7422 GB, free: 7.125 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.01285, allocations: 4 kB / 0.7422 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.01285, allocations: 0 / 0.7422 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.01286, allocations: 0 / 0.7422 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000395/0.01325, allocations: 0.5828 MB / 0.7428 GB, free: 6.484 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.01325, allocations: 0 / 0.7428 GB, free: 6.484 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.94e-05/0.0133, allocations: 27.94 kB / 0.7428 GB, free: 6.457 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.228e-05/0.01333, allocations: 31.78 kB / 0.7429 GB, free: 6.426 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.903e-05/0.01341, allocations: 30.33 kB / 0.7429 GB, free: 6.395 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.01342, allocations: 8 kB / 0.7429 GB, free: 6.387 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004551/0.01388, allocations: 1.203 MB / 0.7441 GB, free: 5.09 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.01388, allocations: 0 / 0.7441 GB, free: 5.09 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001415/0.01402, allocations: 288.6 kB / 0.7443 GB, free: 4.766 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.01403, allocations: 8 kB / 0.7443 GB, free: 4.758 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.096e-05/0.0141, allocations: 10.02 kB / 0.7444 GB, free: 4.75 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.057e-05/0.01412, allocations: 23.86 kB / 0.7444 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.01413, allocations: 4 kB / 0.7444 GB, free: 4.723 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.508e-05/0.01418, allocations: 63.42 kB / 0.7444 GB, free: 4.66 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.01418, allocations: 0 / 0.7444 GB, free: 4.66 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001949/0.01437, allocations: 81.19 kB / 0.7445 GB, free: 4.582 MB / 0.7136 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 6.581e-05/0.01444, allocations: 84.36 kB / 0.7446 GB, free: 4.488 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002005/0.01464, allocations: 219.9 kB / 0.7448 GB, free: 4.262 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.01464, allocations: 6.75 kB / 0.7448 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.01477, allocations: 230.6 kB / 0.745 GB, free: 4.012 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.0151, allocations: 430 kB / 0.7454 GB, free: 3.52 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.01697, allocations: 0.5495 MB / 0.746 GB, free: 2.918 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.965e-05/0.01703, allocations: 116.8 kB / 0.7461 GB, free: 2.785 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.909e-05/0.01709, allocations: 17.64 kB / 0.7461 GB, free: 2.773 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.819e-05/0.01718, allocations: 95.94 kB / 0.7462 GB, free: 2.68 MB / 0.7136 GB Notification: Performance of SimCode: time 4.81e-07/0.01718, allocations: 0.6562 kB / 0.7462 GB, free: 2.68 MB / 0.7136 GB Notification: Performance of Templates: time 0.004261/0.02145, allocations: 2.73 MB / 0.7489 GB, free: 112 kB / 0.7136 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.551703556440771]