Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.00135/0.00135, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.001506/0.001506, allocations: 185 kB / 24.45 MB, free: 3.867 MB / 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.439/1.439, allocations: 225.7 MB / 253.3 MB, free: 12.86 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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 39.94 kB / 371.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2327, allocations: 52.18 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004384/0.2371, allocations: 2.772 MB / 426.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.2382, allocations: 0.6584 MB / 427.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.2383, allocations: 4 kB / 427.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.2385, allocations: 55.44 kB / 427.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001856/0.2387, allocations: 103.1 kB / 427.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.2389, allocations: 91.81 kB / 427.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004451/0.2394, allocations: 422.1 kB / 427.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001746/0.2395, allocations: 71.59 kB / 428 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.2397, allocations: 155.4 kB / 428.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/0.2399, allocations: 139.3 kB / 428.3 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.083e-05/0.24, allocations: 36 kB / 428.3 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.787e-05/0.2401, allocations: 32 kB / 428.3 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.161e-05/0.2401, allocations: 75.75 kB / 428.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.2403, allocations: 151.2 kB / 428.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004155/0.2407, allocations: 392.1 kB / 428.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2407, allocations: 0 / 428.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2407, allocations: 0 / 428.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.2407, allocations: 0 / 428.9 MB, free: 9.324 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.001019/0.2417, allocations: 0.5675 MB / 429.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.2418, allocations: 8.031 kB / 429.5 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.816e-05/0.2418, allocations: 44.69 kB / 429.6 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003653/0.2422, allocations: 213.9 kB / 429.8 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.902e-05/0.2422, allocations: 28.97 kB / 429.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.2423, allocations: 28.38 kB / 429.8 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006106/0.2429, allocations: 412.6 kB / 430.2 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.2429, allocations: 3.984 kB / 430.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.254e-05/0.2429, allocations: 16 kB / 430.3 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-06/0.2429, allocations: 8 kB / 430.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004977/0.2434, allocations: 214.5 kB / 430.5 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.2451, allocations: 0.8056 MB / 431.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005012/0.2456, allocations: 217.7 kB / 431.5 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.2458, allocations: 98.69 kB / 431.6 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.2458, allocations: 0 / 431.6 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.2458, allocations: 38.56 kB / 431.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.122e-06/0.2458, allocations: 0 / 431.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001213/0.2471, allocations: 407.2 kB / 432 MB, free: 6.074 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.2471, allocations: 59.28 kB / 432.1 MB, free: 6.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.2474, allocations: 244.9 kB / 432.3 MB, free: 5.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.2474, allocations: 29.7 kB / 432.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.2475, allocations: 188.5 kB / 432.5 MB, free: 5.527 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.193e-05/0.2476, allocations: 75.36 kB / 432.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.191e-05/0.2477, allocations: 45.94 kB / 432.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.2479, allocations: 330.8 kB / 433 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/0.2481, allocations: 80.42 kB / 433 MB, free: 4.988 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.2483, allocations: 108.6 kB / 433.2 MB, free: 4.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003956/0.2487, allocations: 182.5 kB / 433.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2487, allocations: 0 / 433.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000665/0.2494, allocations: 322.8 kB / 433.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.2494, allocations: 11.88 kB / 433.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2494, allocations: 0 / 433.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002678/0.2496, allocations: 77.66 kB / 433.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.2498, allocations: 39.98 kB / 433.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002559/0.2524, allocations: 2.784 MB / 436.6 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.2526, allocations: 20.17 kB / 436.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.2526, allocations: 16.11 kB / 436.6 MB, free: 1.207 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 (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.000155/0.2528, allocations: 143.8 kB / 436.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.2528, allocations: 23.86 kB / 436.8 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.158e-05/0.2529, allocations: 34.2 kB / 436.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2529, allocations: 4 kB / 436.8 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.2529, allocations: 0 / 436.8 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.2529, allocations: 4 kB / 436.8 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.2539, allocations: 0.5778 MB / 437.4 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2539, allocations: 0 / 437.4 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.254, allocations: 23.98 kB / 437.4 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001873/0.2542, allocations: 77.61 kB / 437.5 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.2542, allocations: 15.92 kB / 437.5 MB, free: 256 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002468/0.2567, allocations: 2.775 MB / 440.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2567, allocations: 0 / 440.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006303/0.2573, allocations: 376.5 kB / 440.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.507e-05/0.2574, allocations: 31.78 kB / 440.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.2574, allocations: 4 kB / 440.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.2576, allocations: 31.92 kB / 440.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.2577, allocations: 23.95 kB / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.2577, allocations: 8.188 kB / 440.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001742/0.2579, allocations: 172.5 kB / 440.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2579, allocations: 0 / 440.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003801/0.2583, allocations: 95.84 kB / 441 MB, free: 12.52 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.0001198/0.2584, allocations: 103.2 kB / 441.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007803/0.2592, allocations: 441.1 kB / 441.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2592, allocations: 0 / 441.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004728/0.2597, allocations: 337.4 kB / 441.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.26, allocations: 42.86 kB / 441.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008896/0.2609, allocations: 0.5298 MB / 442.4 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.261, allocations: 155.5 kB / 442.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.693e-05/0.2611, allocations: 23.42 kB / 442.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2611, allocations: 4 kB / 442.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of Templates: time 0.00807/0.2692, allocations: 5.577 MB / 448.2 MB, free: 5.227 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.43615847080946]