Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 225.6 MB / 250.8 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 51.92 kB / 368.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2883, allocations: 52.13 MB / 420.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003583/0.2919, allocations: 2.161 MB / 423 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009842/0.2928, allocations: 0.5571 MB / 423.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.535e-05/0.2929, allocations: 4 kB / 423.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.293, allocations: 27.72 kB / 423.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.2931, allocations: 43.58 kB / 423.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.2934, allocations: 39.94 kB / 423.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002076/0.2936, allocations: 159.2 kB / 423.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.2937, allocations: 33.48 kB / 423.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001295/0.2939, allocations: 75.7 kB / 424 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.294, allocations: 63.7 kB / 424 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.58e-05/0.294, allocations: 12 kB / 424 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.28e-05/0.2941, allocations: 20 kB / 424.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.046e-05/0.2941, allocations: 27.86 kB / 424.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.639e-05/0.2942, allocations: 67.67 kB / 424.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000246/0.2944, allocations: 164.9 kB / 424.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2944, allocations: 8 kB / 424.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2944, allocations: 0 / 424.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.2944, allocations: 0 / 424.3 MB, free: 11.79 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.0006418/0.2951, allocations: 447 kB / 424.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.2951, allocations: 8.031 kB / 424.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.592e-05/0.2952, allocations: 16.89 kB / 424.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.2955, allocations: 208.1 kB / 425 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.2955, allocations: 8.609 kB / 425 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.2955, allocations: 16.38 kB / 425 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002573/0.2958, allocations: 121.2 kB / 425.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2958, allocations: 0 / 425.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.2958, allocations: 4 kB / 425.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.2958, allocations: 0 / 425.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.296, allocations: 84.66 kB / 425.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008988/0.2969, allocations: 0.6096 MB / 425.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.2972, allocations: 78.62 kB / 425.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.697e-05/0.2973, allocations: 28.97 kB / 425.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.2973, allocations: 0 / 425.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.2974, allocations: 42.5 kB / 426 MB, free: 9.941 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.72e-07/0.2974, allocations: 0 / 426 MB, free: 9.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000726/0.2981, allocations: 263.4 kB / 426.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.2981, allocations: 55.34 kB / 426.3 MB, free: 9.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.2983, allocations: 144.8 kB / 426.4 MB, free: 9.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.2983, allocations: 25.7 kB / 426.4 MB, free: 9.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.818e-05/0.2984, allocations: 128.1 kB / 426.6 MB, free: 9.277 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.2984, allocations: 23.8 kB / 426.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.496e-05/0.2984, allocations: 21.7 kB / 426.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.2986, allocations: 318.8 kB / 426.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.414e-05/0.2986, allocations: 27.92 kB / 427 MB, free: 8.879 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8e-05/0.2987, allocations: 38.56 kB / 427 MB, free: 8.832 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001355/0.2989, allocations: 70.5 kB / 427.1 MB, free: 8.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2989, allocations: 0 / 427.1 MB, free: 8.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002869/0.2991, allocations: 142.3 kB / 427.2 MB, free: 8.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.2992, allocations: 8 kB / 427.2 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2992, allocations: 0 / 427.2 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001933/0.2994, allocations: 40.77 kB / 427.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.384e-05/0.2994, allocations: 8 kB / 427.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.3011, allocations: 1.686 MB / 428.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.62e-05/0.3011, allocations: 4.031 kB / 428.9 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.3011, allocations: 4 kB / 428.9 MB, free: 6.711 MB / 334.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.0001095/0.3013, allocations: 125.8 kB / 429.1 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.543e-05/0.3013, allocations: 19.89 kB / 429.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.334e-05/0.3013, allocations: 12.77 kB / 429.1 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.3013, allocations: 3.984 kB / 429.1 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-06/0.3013, allocations: 4 kB / 429.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3013, allocations: 4 kB / 429.1 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002429/0.3016, allocations: 213.5 kB / 429.3 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3016, allocations: 0 / 429.3 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.228e-05/0.3016, allocations: 11.92 kB / 429.3 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001204/0.3017, allocations: 36.78 kB / 429.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.3017, allocations: 0 / 429.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.3032, allocations: 1.67 MB / 431 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3032, allocations: 4.062 kB / 431 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003251/0.3035, allocations: 220.3 kB / 431.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.3e-05/0.3036, allocations: 89.02 kB / 431.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.3036, allocations: 0 / 431.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.3037, allocations: 15.92 kB / 431.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.3037, allocations: 8 kB / 431.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.3037, allocations: 192 / 431.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.394e-05/0.3038, allocations: 115.2 kB / 431.5 MB, free: 3.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3038, allocations: 3.938 kB / 431.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000353/0.3042, allocations: 39.89 kB / 431.5 MB, free: 3.898 MB / 334.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.0001257/0.3043, allocations: 95.78 kB / 431.6 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004554/0.3047, allocations: 190.7 kB / 431.8 MB, free: 3.598 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3047, allocations: 0 / 431.8 MB, free: 3.598 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003184/0.3051, allocations: 150.7 kB / 432 MB, free: 3.438 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.3055, allocations: 15.92 kB / 432 MB, free: 3.422 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007712/0.3062, allocations: 307.6 kB / 432.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.3066, allocations: 0.708 MB / 433 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.987e-05/0.3067, allocations: 4.438 kB / 433 MB, free: 2.352 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.601e-05/0.3067, allocations: 11.44 kB / 433 MB, free: 2.34 MB / 334.1 MB Notification: Performance of SimCode: time 4.9e-07/0.3067, allocations: 0 / 433 MB, free: 2.34 MB / 334.1 MB Notification: Performance of Templates: time 0.007005/0.3137, allocations: 1.573 MB / 434.6 MB, free: 0.7812 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.473933132365346]