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.001082/0.001082, allocations: 105.8 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001204/0.001204, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 227.4 MB / 246.3 MB, free: 9.148 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001408, allocations: 68.22 kB / 306.3 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1239, allocations: 50.54 MB / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004466/0.1284, allocations: 3.057 MB / 359.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.13, allocations: 0.7557 MB / 360.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.1302, allocations: 4 kB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.1304, allocations: 39.62 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001656/0.1306, allocations: 83.31 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003047/0.1309, allocations: 95.84 kB / 360.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003942/0.1313, allocations: 390.2 kB / 361.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.1315, allocations: 95.64 kB / 361.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002468/0.1317, allocations: 143.5 kB / 361.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000168/0.1319, allocations: 163.2 kB / 361.6 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.454e-05/0.132, allocations: 20 kB / 361.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.1321, allocations: 28 kB / 361.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.936e-05/0.1321, allocations: 59.75 kB / 361.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.1323, allocations: 159.2 kB / 361.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003482/0.1327, allocations: 374.9 kB / 362.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1327, allocations: 0 / 362.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1327, allocations: 0 / 362.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.1327, allocations: 0 / 362.2 MB, free: 8.848 MB / 302.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.001136/0.1338, allocations: 0.6392 MB / 362.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.1339, allocations: 8.031 kB / 362.9 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002148/0.1341, allocations: 52.48 kB / 362.9 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003899/0.1345, allocations: 279.6 kB / 363.2 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.1345, allocations: 20.94 kB / 363.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/0.1346, allocations: 24.38 kB / 363.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000556/0.1352, allocations: 269 kB / 363.5 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.1352, allocations: 0 / 363.5 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.1352, allocations: 12 kB / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.1352, allocations: 8 kB / 363.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005035/0.1357, allocations: 218.1 kB / 363.7 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.1375, allocations: 0.9755 MB / 364.7 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005652/0.1381, allocations: 310.8 kB / 365 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.1383, allocations: 104.8 kB / 365.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.1384, allocations: 0 / 365.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.1384, allocations: 46.48 kB / 365.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.383e-06/0.1384, allocations: 0 / 365.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001324/0.1398, allocations: 0.552 MB / 365.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.1398, allocations: 59.41 kB / 365.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002951/0.1401, allocations: 258.5 kB / 366 MB, free: 4.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.1402, allocations: 37.69 kB / 366.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.1403, allocations: 179.9 kB / 366.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.331e-05/0.1404, allocations: 67.02 kB / 366.3 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.467e-05/0.1405, allocations: 41.94 kB / 366.3 MB, free: 4.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1406, allocations: 334.8 kB / 366.7 MB, free: 4.094 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.1408, allocations: 84.36 kB / 366.8 MB, free: 4.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002357/0.1411, allocations: 103.5 kB / 366.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004261/0.1415, allocations: 188.2 kB / 367 MB, free: 3.711 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1415, allocations: 4 kB / 367 MB, free: 3.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007034/0.1422, allocations: 322.6 kB / 367.4 MB, free: 3.379 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.1422, allocations: 4 kB / 367.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1423, allocations: 64 / 367.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003205/0.1426, allocations: 77.67 kB / 367.4 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002096/0.1428, allocations: 35.97 kB / 367.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002421/0.1452, allocations: 2.855 MB / 370.3 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.1455, allocations: 27.77 kB / 370.4 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.1455, allocations: 16 kB / 370.4 MB, free: 92 kB / 302.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.2158/0.3613, allocations: 137 kB / 370.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.3614, allocations: 24.94 kB / 370.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.245e-05/0.3615, allocations: 29.44 kB / 370.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.669e-06/0.3616, allocations: 3.281 kB / 370.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.213e-05/0.3616, allocations: 5.906 kB / 370.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.3616, allocations: 1.922 kB / 370.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.3631, allocations: 0.6809 MB / 371.2 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3631, allocations: 6.062 kB / 371.3 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/0.3633, allocations: 26.06 kB / 371.3 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002272/0.3635, allocations: 78.83 kB / 371.4 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.3636, allocations: 1.188 kB / 371.4 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/0.3658, allocations: 2.828 MB / 374.2 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3658, allocations: 3.438 kB / 374.2 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008179/0.3666, allocations: 378.1 kB / 374.6 MB, free: 16.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.3667, allocations: 102.7 kB / 374.7 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.386e-05/0.3668, allocations: 1.984 kB / 374.7 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003012/0.3671, allocations: 32.83 kB / 374.7 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.3672, allocations: 30 kB / 374.7 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.3673, allocations: 10.53 kB / 374.7 MB, free: 16.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002917/0.3676, allocations: 188.9 kB / 374.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.41e-07/0.3676, allocations: 0 / 374.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005283/0.3681, allocations: 92.22 kB / 375 MB, free: 16.65 MB / 302.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.0001472/0.3683, allocations: 103.2 kB / 375.1 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008606/0.3691, allocations: 453.1 kB / 375.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.3691, allocations: 1 kB / 375.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004267/0.3696, allocations: 347.7 kB / 375.9 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.3701, allocations: 45.06 kB / 375.9 MB, free: 16.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009746/0.371, allocations: 0.6078 MB / 376.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.3713, allocations: 0.7667 MB / 377.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001379/0.3715, allocations: 22.25 kB / 377.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.254e-05/0.3715, allocations: 17.66 kB / 377.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of SimCode: time 2.064e-06/0.3715, allocations: 0 / 377.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of Templates: time 0.01231/0.3838, allocations: 3.47 MB / 380.8 MB, free: 14.78 MB / 302.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