Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.006148/0.006148, allocations: 106.8 kB / 21.98 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 216.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.422/1.422, allocations: 230.6 MB / 259 MB, free: 8.035 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 55.91 kB / 379.8 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2541, allocations: 53.37 MB / 433.2 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004635/0.2587, allocations: 3.049 MB / 436.2 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.2601, allocations: 0.7634 MB / 437 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001649/0.2603, allocations: 15.88 kB / 437 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.2605, allocations: 51.5 kB / 437.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.2607, allocations: 103 kB / 437.2 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.261, allocations: 99.81 kB / 437.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004932/0.2615, allocations: 422.1 kB / 437.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.2617, allocations: 75.59 kB / 437.7 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002701/0.2619, allocations: 159.5 kB / 437.9 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.2622, allocations: 167.3 kB / 438.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.986e-05/0.2622, allocations: 32 kB / 438.1 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.989e-05/0.2623, allocations: 40 kB / 438.1 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.591e-05/0.2624, allocations: 71.7 kB / 438.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.2626, allocations: 175.2 kB / 438.4 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004845/0.2631, allocations: 399.5 kB / 438.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2631, allocations: 0 / 438.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2631, allocations: 0 / 438.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.2631, allocations: 0 / 438.8 MB, free: 1.344 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001046/0.2641, allocations: 0.5676 MB / 439.3 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.2642, allocations: 12.03 kB / 439.3 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002033/0.2644, allocations: 52.69 kB / 439.4 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004243/0.2648, allocations: 225.9 kB / 439.6 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.2648, allocations: 21.03 kB / 439.6 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.976e-05/0.2649, allocations: 28.31 kB / 439.7 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005354/0.2654, allocations: 262.4 kB / 439.9 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.2654, allocations: 0 / 439.9 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.2654, allocations: 16 kB / 439.9 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.2654, allocations: 11.98 kB / 439.9 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005151/0.266, allocations: 214.5 kB / 440.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.2676, allocations: 0.9337 MB / 441.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004898/0.2681, allocations: 198.6 kB / 441.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.2684, allocations: 96.81 kB / 441.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.2684, allocations: 4 kB / 441.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.2684, allocations: 42.55 kB / 441.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.2684, allocations: 0 / 441.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001218/0.2696, allocations: 409 kB / 441.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.2697, allocations: 59.34 kB / 441.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.27, allocations: 261.9 kB / 442.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.27, allocations: 29.7 kB / 442.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.2701, allocations: 184.2 kB / 442.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.297e-05/0.2702, allocations: 71.38 kB / 442.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.349e-05/0.2703, allocations: 53.89 kB / 442.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.2705, allocations: 334.8 kB / 442.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/0.2707, allocations: 76.42 kB / 442.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.2709, allocations: 108.4 kB / 443 MB, free: 12.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004131/0.2713, allocations: 190.4 kB / 443.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2713, allocations: 0 / 443.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006734/0.272, allocations: 322.9 kB / 443.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.272, allocations: 7.938 kB / 443.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.272, allocations: 3.984 kB / 443.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002906/0.2723, allocations: 73.67 kB / 443.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.2725, allocations: 39.92 kB / 443.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002689/0.2752, allocations: 2.849 MB / 446.4 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.2754, allocations: 23.91 kB / 446.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.2754, allocations: 8 kB / 446.5 MB, free: 9.16 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001592/0.2755, allocations: 141.7 kB / 446.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.914e-05/0.2756, allocations: 35.75 kB / 446.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.536e-05/0.2757, allocations: 30.27 kB / 446.7 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.2757, allocations: 8.062 kB / 446.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.2757, allocations: 0 / 446.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2757, allocations: 0 / 446.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.2768, allocations: 0.6504 MB / 447.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2768, allocations: 4 kB / 447.3 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.2769, allocations: 27.98 kB / 447.4 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001977/0.2771, allocations: 73.66 kB / 447.4 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.2771, allocations: 4 kB / 447.4 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002627/0.2798, allocations: 2.842 MB / 450.3 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2798, allocations: 4 kB / 450.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006744/0.2804, allocations: 381.4 kB / 450.7 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.348e-05/0.2805, allocations: 31.75 kB / 450.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.982e-05/0.2805, allocations: 4 kB / 450.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.2808, allocations: 31.97 kB / 450.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.738e-05/0.2808, allocations: 23.95 kB / 450.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.2808, allocations: 8 kB / 450.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002051/0.2811, allocations: 185.2 kB / 450.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2811, allocations: 0 / 450.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003944/0.2814, allocations: 91.89 kB / 451 MB, free: 4.273 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001345/0.2816, allocations: 107.2 kB / 451.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008261/0.2824, allocations: 441.1 kB / 451.6 MB, free: 3.703 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2824, allocations: 3.938 kB / 451.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000471/0.2829, allocations: 332.6 kB / 451.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.2833, allocations: 64.45 kB / 452 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009256/0.2842, allocations: 0.5182 MB / 452.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004129/0.2846, allocations: 0.7639 MB / 453.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.485e-05/0.2847, allocations: 19.44 kB / 453.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2847, allocations: 0 / 453.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of Templates: time 0.008737/0.2934, allocations: 5.684 MB / 458.9 MB, free: 12.26 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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: 7.79537761118263]