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.001042/0.001042, allocations: 91.52 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001492/0.001492, allocations: 202.5 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.582/1.582, allocations: 227.7 MB / 246.8 MB, free: 9.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002736, allocations: 8 kB / 307.7 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1405, allocations: 51.52 MB / 359.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004473/0.1451, allocations: 2.691 MB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001703/0.1468, allocations: 0.7363 MB / 362.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001916/0.147, allocations: 8 kB / 362.7 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000191/0.1472, allocations: 47.61 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.1474, allocations: 83.31 kB / 362.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003651/0.1478, allocations: 95.83 kB / 362.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004866/0.1483, allocations: 386.2 kB / 363.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.1486, allocations: 91.66 kB / 363.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003949/0.149, allocations: 143.4 kB / 363.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.1492, allocations: 151.2 kB / 363.7 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.1493, allocations: 16 kB / 363.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.1495, allocations: 20 kB / 363.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.09e-05/0.1495, allocations: 55.75 kB / 363.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002049/0.1497, allocations: 180.8 kB / 363.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004837/0.1502, allocations: 370.8 kB / 364.3 MB, free: 7.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.1502, allocations: 0 / 364.3 MB, free: 7.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1503, allocations: 3.938 kB / 364.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.1503, allocations: 0 / 364.3 MB, free: 7.992 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.001318/0.1516, allocations: 0.5887 MB / 364.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.489e-05/0.1517, allocations: 12.02 kB / 364.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000251/0.1519, allocations: 52.47 kB / 365 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003965/0.1523, allocations: 275.6 kB / 365.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.1524, allocations: 20.94 kB / 365.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.582e-05/0.1524, allocations: 24.38 kB / 365.3 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005941/0.153, allocations: 273.2 kB / 365.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.1531, allocations: 4 kB / 365.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.747e-05/0.1531, allocations: 8 kB / 365.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.1531, allocations: 8 kB / 365.6 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005501/0.1537, allocations: 234.1 kB / 365.8 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002053/0.1557, allocations: 1.003 MB / 366.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006396/0.1564, allocations: 321 kB / 367.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002795/0.1567, allocations: 116.8 kB / 367.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/0.1567, allocations: 0 / 367.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/0.1568, allocations: 42.56 kB / 367.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 4.379e-06/0.1568, allocations: 0 / 367.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001743/0.1585, allocations: 0.5832 MB / 367.8 MB, free: 4.211 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.1586, allocations: 59.41 kB / 367.9 MB, free: 4.141 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003535/0.159, allocations: 258.6 kB / 368.1 MB, free: 3.875 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.159, allocations: 33.7 kB / 368.2 MB, free: 3.836 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.1592, allocations: 179.9 kB / 368.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.767e-05/0.1592, allocations: 70.98 kB / 368.4 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.156e-05/0.1593, allocations: 25.7 kB / 368.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1594, allocations: 338.8 kB / 368.8 MB, free: 3.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.1596, allocations: 80.44 kB / 368.9 MB, free: 3.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.1599, allocations: 115.4 kB / 369 MB, free: 3.008 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004258/0.1603, allocations: 204.2 kB / 369.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1603, allocations: 0 / 369.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007433/0.1611, allocations: 342.8 kB / 369.5 MB, free: 2.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.1611, allocations: 4 kB / 369.5 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.1611, allocations: 0 / 369.5 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003865/0.1615, allocations: 81.59 kB / 369.6 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.1618, allocations: 39.98 kB / 369.6 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2203/0.382, allocations: 2.84 MB / 372.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.3824, allocations: 33.98 kB / 372.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.3824, allocations: 7.594 kB / 372.5 MB, free: 17.91 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.0001956/0.3826, allocations: 144.8 kB / 372.7 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.279e-05/0.3827, allocations: 31.11 kB / 372.7 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.931e-05/0.3828, allocations: 31.09 kB / 372.7 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.3828, allocations: 6.859 kB / 372.7 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/0.3828, allocations: 3.438 kB / 372.7 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.3828, allocations: 1.453 kB / 372.7 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/0.3843, allocations: 0.7013 MB / 373.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3843, allocations: 0 / 373.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.3845, allocations: 27.69 kB / 373.5 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002852/0.3848, allocations: 72.66 kB / 373.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.3848, allocations: 12.14 kB / 373.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00233/0.3872, allocations: 2.83 MB / 376.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3872, allocations: 0 / 376.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008411/0.388, allocations: 392.6 kB / 376.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.891e-05/0.3881, allocations: 108.1 kB / 376.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.197e-05/0.3881, allocations: 8.422 kB / 376.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.3884, allocations: 35.98 kB / 376.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.3886, allocations: 19.7 kB / 376.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/0.3886, allocations: 7.156 kB / 376.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003328/0.3889, allocations: 188.5 kB / 377.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3889, allocations: 1.312 kB / 377.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005136/0.3895, allocations: 93.69 kB / 377.2 MB, free: 14.59 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.000141/0.3896, allocations: 112.9 kB / 377.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008468/0.3905, allocations: 460.7 kB / 377.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3905, allocations: 1.219 kB / 377.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004626/0.391, allocations: 357.7 kB / 378.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004336/0.3914, allocations: 49.09 kB / 378.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.3925, allocations: 0.6312 MB / 378.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.3929, allocations: 0.7685 MB / 379.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.393, allocations: 25.58 kB / 379.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.009e-05/0.3931, allocations: 18.25 kB / 379.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3931, allocations: 1.375 kB / 379.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of Templates: time 0.009899/0.403, allocations: 3.436 MB / 383 MB, free: 12.74 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