Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.002428/0.002428, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002876/0.002876, allocations: 169.6 kB / 24.28 MB, free: 152 kB / 18.57 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.578/1.578, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0_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_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.172e-05/2.322e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004598/0.004621, allocations: 2.994 MB / 275.3 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001403/0.006025, allocations: 0.7362 MB / 276.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.006165, allocations: 7.938 kB / 276.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.006337, allocations: 55.44 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002203/0.006557, allocations: 107 kB / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003105/0.006868, allocations: 111.7 kB / 276.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004969/0.007365, allocations: 425.9 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.007544, allocations: 79.62 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003995/0.007943, allocations: 239.5 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002148/0.008158, allocations: 119.7 kB / 277.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.109e-05/0.008219, allocations: 32 kB / 277.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.924e-05/0.008318, allocations: 40 kB / 277.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.397e-05/0.008402, allocations: 79.66 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.008555, allocations: 115.8 kB / 277.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005324/0.009087, allocations: 414.6 kB / 277.8 MB, free: 12.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.00909, allocations: 0 / 277.8 MB, free: 12.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.00909, allocations: 4 kB / 277.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.009096, allocations: 0 / 277.9 MB, free: 12.28 MB / 266.7 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.001159/0.01026, allocations: 0.675 MB / 278.5 MB, free: 11.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.01029, allocations: 8.031 kB / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.01051, allocations: 68.7 kB / 278.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.01089, allocations: 228 kB / 278.8 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.01092, allocations: 25.03 kB / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.49e-05/0.01097, allocations: 32.38 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007126/0.01169, allocations: 396.9 kB / 279.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.0117, allocations: 192 / 279.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.01173, allocations: 12.38 kB / 279.3 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.01174, allocations: 11.94 kB / 279.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004682/0.01221, allocations: 194.5 kB / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.01408, allocations: 0.9343 MB / 280.4 MB, free: 9.551 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005032/0.01458, allocations: 219.1 kB / 280.6 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000209/0.01479, allocations: 98.64 kB / 280.7 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.01482, allocations: 4 kB / 280.7 MB, free: 9.223 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.01486, allocations: 41.39 kB / 280.8 MB, free: 9.172 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.173e-06/0.01486, allocations: 4 kB / 280.8 MB, free: 9.168 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001245/0.0161, allocations: 408.2 kB / 281.2 MB, free: 8.758 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.01615, allocations: 55.41 kB / 281.2 MB, free: 8.691 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003513/0.0165, allocations: 328.3 kB / 281.5 MB, free: 8.352 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.01653, allocations: 29.7 kB / 281.6 MB, free: 8.316 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.01671, allocations: 239.2 kB / 281.8 MB, free: 8.078 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.593e-05/0.01679, allocations: 87.31 kB / 281.9 MB, free: 7.992 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.01689, allocations: 51.59 kB / 281.9 MB, free: 7.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002821/0.01717, allocations: 0.5196 MB / 282.5 MB, free: 7.398 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.01735, allocations: 68.44 kB / 282.5 MB, free: 7.332 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.01756, allocations: 108 kB / 282.6 MB, free: 7.215 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003831/0.01794, allocations: 181.6 kB / 282.8 MB, free: 7.027 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.01795, allocations: 0 / 282.8 MB, free: 7.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006663/0.01861, allocations: 313.2 kB / 283.1 MB, free: 6.707 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.01863, allocations: 4 kB / 283.1 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.01863, allocations: 0 / 283.1 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004812/0.01911, allocations: 119.2 kB / 283.2 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.01929, allocations: 31.97 kB / 283.3 MB, free: 6.547 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003828/0.02312, allocations: 3.844 MB / 287.1 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.0233, allocations: 19.89 kB / 287.1 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.02332, allocations: 4 kB / 287.1 MB, free: 2.438 MB / 266.7 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.000189/0.02351, allocations: 188.5 kB / 287.3 MB, free: 2.242 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.713e-05/0.02357, allocations: 35.92 kB / 287.4 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.002e-05/0.02363, allocations: 30.28 kB / 287.4 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.02363, allocations: 0 / 287.4 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.02364, allocations: 4.188 kB / 287.4 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.02365, allocations: 7.922 kB / 287.4 MB, free: 2.164 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.02475, allocations: 0.6569 MB / 288.1 MB, free: 1.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.02476, allocations: 4 kB / 288.1 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.02487, allocations: 23.98 kB / 288.1 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000366/0.02524, allocations: 103.3 kB / 288.2 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.02525, allocations: 4 kB / 288.2 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003309/0.02856, allocations: 3.825 MB / 292 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.02856, allocations: 0 / 292 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006745/0.02924, allocations: 439.5 kB / 292.4 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.785e-05/0.02929, allocations: 23.8 kB / 292.5 MB, free: 12.76 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.937e-05/0.02932, allocations: 4 kB / 292.5 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.02956, allocations: 27.97 kB / 292.5 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.967e-05/0.02965, allocations: 31.89 kB / 292.5 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.02967, allocations: 8.188 kB / 292.5 MB, free: 12.69 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002307/0.0299, allocations: 229.1 kB / 292.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0299, allocations: 0 / 292.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003835/0.03028, allocations: 95.83 kB / 292.9 MB, free: 12.37 MB / 282.7 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.0001421/0.03042, allocations: 99.25 kB / 293 MB, free: 12.26 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009668/0.03139, allocations: 0.5441 MB / 293.5 MB, free: 11.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.03139, allocations: 0 / 293.5 MB, free: 11.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00055/0.03194, allocations: 463.2 kB / 293.9 MB, free: 11.19 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.03231, allocations: 48.53 kB / 294 MB, free: 11.14 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009169/0.03322, allocations: 0.4946 MB / 294.5 MB, free: 10.62 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001708/0.0334, allocations: 163.7 kB / 294.7 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.792e-05/0.03349, allocations: 21.95 kB / 294.7 MB, free: 10.42 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.425e-05/0.03356, allocations: 16.5 kB / 294.7 MB, free: 10.41 MB / 282.7 MB Notification: Performance of SimCode: time 7.91e-07/0.03356, allocations: 0 / 294.7 MB, free: 10.41 MB / 282.7 MB Notification: Performance of Templates: time 0.008858/0.04242, allocations: 3.625 MB / 298.3 MB, free: 6.832 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 4.678480018046685]