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.001148/0.001148, allocations: 96.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001115, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002485/0.0002485, allocations: 11.98 kB / 306.6 MB, free: 1.656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.131, allocations: 51.48 MB / 358.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00286/0.1339, allocations: 2.408 MB / 360.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.1351, allocations: 0.7251 MB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.1352, allocations: 7.938 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.309e-05/0.1353, allocations: 35.73 kB / 361.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002319/0.1355, allocations: 135.6 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.1358, allocations: 67.91 kB / 361.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003203/0.1361, allocations: 279.4 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.1363, allocations: 81.66 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.1366, allocations: 131.5 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001547/0.1367, allocations: 147.3 kB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.475e-05/0.1368, allocations: 20 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.135e-05/0.1369, allocations: 16 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.358e-05/0.1369, allocations: 59.75 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.281e-05/0.137, allocations: 85.58 kB / 362.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002546/0.1372, allocations: 275.5 kB / 362.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.1373, allocations: 3.938 kB / 362.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1373, allocations: 0 / 362.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1373, allocations: 0 / 362.5 MB, free: 9.691 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.0008715/0.1381, allocations: 0.5924 MB / 363.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1382, allocations: 12.03 kB / 363.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.1384, allocations: 47.61 kB / 363.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.1387, allocations: 270.4 kB / 363.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.1387, allocations: 20.56 kB / 363.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.1388, allocations: 27.95 kB / 363.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004863/0.1393, allocations: 256.9 kB / 363.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.1393, allocations: 4 kB / 363.7 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.1394, allocations: 12 kB / 363.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.1394, allocations: 8 kB / 363.7 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004782/0.1399, allocations: 230.1 kB / 364 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.1415, allocations: 0.9989 MB / 365 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005124/0.142, allocations: 311.8 kB / 365.3 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.1421, allocations: 8.188 kB / 365.3 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.1421, allocations: 30.75 kB / 365.3 MB, free: 6.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.503e-06/0.1421, allocations: 0 / 365.3 MB, free: 6.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001324/0.1434, allocations: 0.5836 MB / 365.9 MB, free: 6.062 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.1435, allocations: 59.41 kB / 366 MB, free: 5.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002705/0.1438, allocations: 254.6 kB / 366.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.1438, allocations: 29.7 kB / 366.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.144, allocations: 179.9 kB / 366.4 MB, free: 5.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.165e-05/0.144, allocations: 74.98 kB / 366.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.467e-06/0.144, allocations: 0 / 366.5 MB, free: 5.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1442, allocations: 334.8 kB / 366.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/0.1444, allocations: 84.42 kB / 366.9 MB, free: 5.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.1446, allocations: 111.5 kB / 367 MB, free: 4.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002096/0.1448, allocations: 101.7 kB / 367.1 MB, free: 4.801 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1448, allocations: 0 / 367.1 MB, free: 4.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006158/0.1455, allocations: 338.7 kB / 367.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1455, allocations: 6.969 kB / 367.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.1455, allocations: 0 / 367.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002596/0.1458, allocations: 81.55 kB / 367.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.146, allocations: 47.91 kB / 367.6 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002148/0.1481, allocations: 2.859 MB / 370.4 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.1483, allocations: 35.67 kB / 370.5 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.1484, allocations: 8 kB / 370.5 MB, free: 1.156 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001572/0.1485, allocations: 149.2 kB / 370.6 MB, free: 1.004 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.08e-05/0.1486, allocations: 27.72 kB / 370.6 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.666e-05/0.1487, allocations: 26.19 kB / 370.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.1487, allocations: 4 kB / 370.7 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.1487, allocations: 3.984 kB / 370.7 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.1487, allocations: 0 / 370.7 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.1497, allocations: 0.698 MB / 371.4 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1497, allocations: 3.984 kB / 371.4 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.1499, allocations: 31.98 kB / 371.4 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.15, allocations: 73.61 kB / 371.5 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.1501, allocations: 4 kB / 371.5 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2787/0.4287, allocations: 2.849 MB / 374.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4288, allocations: 0.625 kB / 374.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007803/0.4296, allocations: 394.1 kB / 374.7 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.552e-05/0.4297, allocations: 103.5 kB / 374.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.4297, allocations: 4.578 kB / 374.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002973/0.43, allocations: 38.94 kB / 374.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.4301, allocations: 21.94 kB / 374.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.4302, allocations: 5.531 kB / 374.9 MB, free: 16.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002181/0.4304, allocations: 190.5 kB / 375.1 MB, free: 16.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4304, allocations: 0 / 375.1 MB, free: 16.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004998/0.4309, allocations: 95.06 kB / 375.2 MB, free: 16.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001621/0.4311, allocations: 109.9 kB / 375.3 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000922/0.432, allocations: 456.2 kB / 375.7 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.432, allocations: 0 / 375.7 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004665/0.4325, allocations: 355 kB / 376.1 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.4329, allocations: 44.66 kB / 376.1 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.4339, allocations: 0.5922 MB / 376.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.4343, allocations: 0.7742 MB / 377.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.4344, allocations: 25.3 kB / 377.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.24e-05/0.4345, allocations: 19.33 kB / 377.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.4345, allocations: 0 / 377.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of Templates: time 0.009188/0.4437, allocations: 3.31 MB / 380.8 MB, free: 15.04 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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches