Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001753/0.001753, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002173/0.002173, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.55/1.55, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3532, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004334/0.3576, allocations: 3.034 MB / 412.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.3587, allocations: 0.74 MB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.3589, allocations: 4 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.3591, allocations: 55.44 kB / 413.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001589/0.3592, allocations: 111 kB / 413.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003006/0.3595, allocations: 95.81 kB / 413.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003785/0.3599, allocations: 414.2 kB / 413.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.3601, allocations: 107.1 kB / 413.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002317/0.3604, allocations: 155.4 kB / 413.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.3606, allocations: 167.3 kB / 414.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.478e-05/0.3606, allocations: 32 kB / 414.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.953e-05/0.3607, allocations: 36 kB / 414.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.048e-05/0.3607, allocations: 75.69 kB / 414.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.3609, allocations: 179.1 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003342/0.3612, allocations: 391.8 kB / 414.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3612, allocations: 0 / 414.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3612, allocations: 0 / 414.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.3613, allocations: 0 / 414.8 MB, free: 12.01 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.0009076/0.3622, allocations: 0.6392 MB / 415.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3622, allocations: 8.031 kB / 415.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001748/0.3624, allocations: 48.5 kB / 415.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003162/0.3627, allocations: 291.4 kB / 415.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.3628, allocations: 24.92 kB / 415.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.3628, allocations: 24.38 kB / 415.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004746/0.3633, allocations: 265.2 kB / 416.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3633, allocations: 0 / 416.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.3633, allocations: 15.98 kB / 416.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3633, allocations: 4 kB / 416.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004306/0.3638, allocations: 218.1 kB / 416.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.3653, allocations: 0.9677 MB / 417.3 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004983/0.3658, allocations: 299.4 kB / 417.6 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002044/0.366, allocations: 104.8 kB / 417.7 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.366, allocations: 4 kB / 417.7 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.366, allocations: 38.56 kB / 417.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.243e-06/0.3661, allocations: 0 / 417.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001201/0.3673, allocations: 0.5558 MB / 418.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.3673, allocations: 55.41 kB / 418.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/0.3675, allocations: 258.6 kB / 418.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.3676, allocations: 33.7 kB / 418.6 MB, free: 7.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.3677, allocations: 183.9 kB / 418.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.685e-05/0.3677, allocations: 78.91 kB / 418.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.537e-05/0.3678, allocations: 33.95 kB / 418.9 MB, free: 7.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3679, allocations: 338.8 kB / 419.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.3681, allocations: 80.42 kB / 419.3 MB, free: 7.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.3683, allocations: 115.4 kB / 419.4 MB, free: 7.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003496/0.3687, allocations: 186.5 kB / 419.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3687, allocations: 0 / 419.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005778/0.3693, allocations: 326.7 kB / 419.9 MB, free: 6.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.3693, allocations: 4 kB / 419.9 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.3693, allocations: 0 / 419.9 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002599/0.3696, allocations: 81.67 kB / 420 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.3698, allocations: 35.97 kB / 420.1 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/0.3718, allocations: 3.051 MB / 423.1 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.372, allocations: 27.77 kB / 423.1 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.372, allocations: 8 kB / 423.1 MB, free: 3.059 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.0001266/0.3722, allocations: 149.8 kB / 423.3 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.004e-05/0.3722, allocations: 31.59 kB / 423.3 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.009e-05/0.3723, allocations: 30.17 kB / 423.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3723, allocations: 0 / 423.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3723, allocations: 4 kB / 423.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3723, allocations: 3.938 kB / 423.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009044/0.3732, allocations: 0.6835 MB / 424 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3732, allocations: 0 / 424 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.3734, allocations: 27.92 kB / 424.1 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001734/0.3735, allocations: 81.78 kB / 424.2 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.3736, allocations: 8 kB / 424.2 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002011/0.3756, allocations: 3.036 MB / 427.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3756, allocations: 4.031 kB / 427.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005511/0.3762, allocations: 385.9 kB / 427.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.3762, allocations: 104.8 kB / 427.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.3763, allocations: 0 / 427.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/0.3765, allocations: 31.97 kB / 427.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.371e-05/0.3766, allocations: 23.91 kB / 427.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.3766, allocations: 12 kB / 427.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001524/0.3768, allocations: 194 kB / 427.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3768, allocations: 0 / 427.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003371/0.3771, allocations: 87.84 kB / 428 MB, free: 13.78 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.0001256/0.3772, allocations: 107.2 kB / 428.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007428/0.378, allocations: 445.1 kB / 428.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.378, allocations: 0 / 428.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003765/0.3784, allocations: 349.1 kB / 428.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000381/0.3788, allocations: 48.67 kB / 428.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007278/0.3795, allocations: 499.5 kB / 429.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.3798, allocations: 0.7677 MB / 430.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.665e-05/0.3799, allocations: 34.2 kB / 430.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.12e-05/0.38, allocations: 19.44 kB / 430.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.38, allocations: 0 / 430.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of Templates: time 0.006655/0.3866, allocations: 3.738 MB / 434 MB, free: 7.723 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches