Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.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.00181/0.00181, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002268/0.002268, allocations: 210.7 kB / 23.74 MB, free: 4.672 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.516/1.516, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 51.92 kB / 378.3 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3034, allocations: 53.37 MB / 431.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003897/0.3073, allocations: 2.182 MB / 433.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.3086, allocations: 0.6233 MB / 434.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.3087, allocations: 7.938 kB / 434.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.3089, allocations: 19.78 kB / 434.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.309, allocations: 43.64 kB / 434.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003022/0.3093, allocations: 51.86 kB / 434.6 MB, free: 4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000239/0.3095, allocations: 167.2 kB / 434.7 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.3097, allocations: 33.66 kB / 434.8 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.3099, allocations: 79.72 kB / 434.8 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001397/0.3101, allocations: 63.7 kB / 434.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.991e-05/0.3101, allocations: 12 kB / 434.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.019e-05/0.3102, allocations: 24 kB / 434.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.208e-05/0.3102, allocations: 31.84 kB / 435 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.79e-05/0.3103, allocations: 75.66 kB / 435 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.3106, allocations: 164.6 kB / 435.2 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3106, allocations: 0 / 435.2 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3106, allocations: 0 / 435.2 MB, free: 3.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.271e-05/0.3106, allocations: 0 / 435.2 MB, free: 3.359 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007211/0.3113, allocations: 373.8 kB / 435.6 MB, free: 2.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.3114, allocations: 8.031 kB / 435.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.3116, allocations: 28.83 kB / 435.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000328/0.3119, allocations: 154.3 kB / 435.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.3119, allocations: 12.55 kB / 435.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.561e-05/0.3119, allocations: 12.38 kB / 435.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.3122, allocations: 127.8 kB / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.3122, allocations: 4 kB / 435.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.3122, allocations: 4 kB / 435.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.3123, allocations: 4 kB / 435.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.3124, allocations: 76.66 kB / 436 MB, free: 2.512 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008924/0.3133, allocations: 0.5659 MB / 436.6 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003042/0.3136, allocations: 86.56 kB / 436.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.45e-05/0.3137, allocations: 28.97 kB / 436.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.3137, allocations: 0 / 436.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/0.3138, allocations: 34.56 kB / 436.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.3138, allocations: 0 / 436.7 MB, free: 1.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000671/0.3144, allocations: 174.5 kB / 436.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.3145, allocations: 59.28 kB / 436.9 MB, free: 1.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.3146, allocations: 157.7 kB / 437.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.3147, allocations: 29.7 kB / 437.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.361e-05/0.3148, allocations: 120.1 kB / 437.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.3148, allocations: 27.78 kB / 437.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.596e-05/0.3148, allocations: 21.72 kB / 437.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.315, allocations: 318.8 kB / 437.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.099e-05/0.315, allocations: 23.98 kB / 437.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.634e-05/0.3151, allocations: 58.56 kB / 437.7 MB, free: 0.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001355/0.3153, allocations: 62.56 kB / 437.7 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-06/0.3153, allocations: 0 / 437.7 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002996/0.3156, allocations: 142.3 kB / 437.9 MB, free: 460 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.3156, allocations: 8 kB / 437.9 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3156, allocations: 0 / 437.9 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002127/0.3158, allocations: 36.84 kB / 437.9 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.034e-05/0.3159, allocations: 11.98 kB / 437.9 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001895/0.3178, allocations: 1.58 MB / 439.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.599e-05/0.3178, allocations: 16.05 kB / 439.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.3178, allocations: 7.938 kB / 439.5 MB, free: 14.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.318, allocations: 125.7 kB / 439.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.509e-05/0.318, allocations: 7.953 kB / 439.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.387e-05/0.318, allocations: 16.7 kB / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.318, allocations: 0 / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.318, allocations: 4.125 kB / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.318, allocations: 0 / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.3183, allocations: 188.6 kB / 439.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3183, allocations: 4 kB / 439.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.613e-05/0.3183, allocations: 4 kB / 439.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001415/0.3185, allocations: 32.83 kB / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.3185, allocations: 4 kB / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001451/0.3199, allocations: 1.582 MB / 441.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3199, allocations: 80 / 441.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003263/0.3202, allocations: 216.5 kB / 441.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.084e-05/0.3203, allocations: 11.95 kB / 441.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.3203, allocations: 0 / 441.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.3204, allocations: 7.984 kB / 441.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.267e-05/0.3204, allocations: 15.92 kB / 441.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-06/0.3204, allocations: 0 / 441.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.211e-05/0.3205, allocations: 116.9 kB / 441.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3205, allocations: 0 / 441.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003665/0.3209, allocations: 43.89 kB / 441.9 MB, free: 12.12 MB / 350.1 MB 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 (2): * Single equations (assignments): 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001111/0.321, allocations: 95.23 kB / 442 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004191/0.3214, allocations: 194.5 kB / 442.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3214, allocations: 4.125 kB / 442.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002174/0.3216, allocations: 154.6 kB / 442.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.3219, allocations: 8 kB / 442.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006131/0.3225, allocations: 300.7 kB / 442.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.3229, allocations: 0.708 MB / 443.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.132e-05/0.3229, allocations: 4.438 kB / 443.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.591e-05/0.3229, allocations: 7.438 kB / 443.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3229, allocations: 0 / 443.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Templates: time 0.004963/0.3279, allocations: 1.596 MB / 445 MB, free: 8.988 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.634162083035335]