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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 104.7 kB / 16.51 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001288, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 222.9 MB / 241.1 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 52.55 kB / 299.9 MB, free: 6.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1199, allocations: 49.44 MB / 349.4 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004845/0.1248, allocations: 3.044 MB / 352.4 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.1262, allocations: 0.6816 MB / 353.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.1264, allocations: 4 kB / 353.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.1266, allocations: 39.69 kB / 353.2 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.1268, allocations: 91.23 kB / 353.2 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.1271, allocations: 75.92 kB / 353.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004058/0.1275, allocations: 390.2 kB / 353.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.1277, allocations: 99.64 kB / 353.8 MB, free: 412 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.1279, allocations: 143.4 kB / 353.9 MB, free: 268 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.1281, allocations: 155.3 kB / 354.1 MB, free: 112 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.806e-05/0.1282, allocations: 20 kB / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.57e-05/0.1283, allocations: 24 kB / 354.1 MB, free: 68 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.526e-05/0.1283, allocations: 63.75 kB / 354.2 MB, free: 4 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.1285, allocations: 155.2 kB / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003393/0.1289, allocations: 366.9 kB / 354.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1289, allocations: 0 / 354.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.1289, allocations: 7.922 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.1289, allocations: 4 kB / 354.7 MB, free: 15.48 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.001147/0.13, allocations: 0.6275 MB / 355.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.1301, allocations: 8.031 kB / 355.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.431e-05/0.1302, allocations: 40.56 kB / 355.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.1306, allocations: 279.6 kB / 355.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.1306, allocations: 20.88 kB / 355.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/0.1306, allocations: 28.38 kB / 355.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000571/0.1312, allocations: 261.1 kB / 356 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.1313, allocations: 3.984 kB / 356 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/0.1313, allocations: 12 kB / 356 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.1313, allocations: 8 kB / 356 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005097/0.1318, allocations: 214.1 kB / 356.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.1337, allocations: 0.9715 MB / 357.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006285/0.1343, allocations: 295.8 kB / 357.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/0.1346, allocations: 119.2 kB / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.1346, allocations: 0 / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.1346, allocations: 42.56 kB / 357.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 9.92e-07/0.1347, allocations: 0 / 357.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001371/0.136, allocations: 0.552 MB / 358.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.1361, allocations: 55.41 kB / 358.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.1364, allocations: 258.6 kB / 358.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.1365, allocations: 29.7 kB / 358.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.1366, allocations: 187.8 kB / 358.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.1367, allocations: 70.92 kB / 358.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.88e-05/0.1368, allocations: 41.94 kB / 358.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.137, allocations: 338.8 kB / 359.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.1372, allocations: 76.42 kB / 359.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/0.1374, allocations: 107.5 kB / 359.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004119/0.1379, allocations: 186.5 kB / 359.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1379, allocations: 3.938 kB / 359.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006924/0.1386, allocations: 326.6 kB / 359.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/0.1386, allocations: 10.41 kB / 359.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1386, allocations: 0 / 359.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003644/0.139, allocations: 69.67 kB / 359.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.1392, allocations: 39.97 kB / 359.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002865/0.1421, allocations: 2.835 MB / 362.8 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.1423, allocations: 23.86 kB / 362.8 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.1423, allocations: 12 kB / 362.8 MB, free: 6.793 MB / 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.0001878/0.1425, allocations: 141.8 kB / 362.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.556e-05/0.1426, allocations: 27.62 kB / 363 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.483e-05/0.1427, allocations: 34.11 kB / 363 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.1427, allocations: 0 / 363 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/0.1427, allocations: 7.938 kB / 363 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.1427, allocations: 0 / 363 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.1439, allocations: 0.6885 MB / 363.7 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1439, allocations: 0 / 363.7 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.144, allocations: 23.98 kB / 363.7 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002208/0.1442, allocations: 85.78 kB / 363.8 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.1443, allocations: 8 kB / 363.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/0.1471, allocations: 2.815 MB / 366.6 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1471, allocations: 4.031 kB / 366.6 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006621/0.1478, allocations: 374.2 kB / 367 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.1479, allocations: 112.7 kB / 367.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.312e-05/0.148, allocations: 7.938 kB / 367.1 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.1482, allocations: 31.97 kB / 367.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.1483, allocations: 19.92 kB / 367.2 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.1484, allocations: 15.98 kB / 367.2 MB, free: 2.031 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002448/0.1486, allocations: 182 kB / 367.4 MB, free: 1.855 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1486, allocations: 0 / 367.4 MB, free: 1.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005953/0.1492, allocations: 95.75 kB / 367.5 MB, free: 1.762 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.0001767/0.1494, allocations: 111.2 kB / 367.6 MB, free: 1.645 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009069/0.1503, allocations: 441.3 kB / 368 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.1504, allocations: 8.062 kB / 368 MB, free: 1.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004799/0.1509, allocations: 347 kB / 368.3 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005392/0.1514, allocations: 56.33 kB / 368.4 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.1525, allocations: 0.6058 MB / 369 MB, free: 132 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1977/0.3502, allocations: 0.7612 MB / 369.8 MB, free: 24.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002139/0.3505, allocations: 24.64 kB / 369.8 MB, free: 24.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.992e-05/0.3506, allocations: 18.53 kB / 369.8 MB, free: 24.77 MB / 302.1 MB Notification: Performance of SimCode: time 1.213e-06/0.3506, allocations: 1.219 kB / 369.8 MB, free: 24.77 MB / 302.1 MB Notification: Performance of Templates: time 0.009255/0.3599, allocations: 3.461 MB / 373.3 MB, free: 24.67 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (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) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches