Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 91.88 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.001169/0.001169, allocations: 203.1 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.522/1.522, allocations: 227.8 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004285/0.0004284, allocations: 11.98 kB / 307.7 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.158, allocations: 51.51 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004493/0.1625, allocations: 3.154 MB / 362.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.1649, allocations: 0.8339 MB / 363.2 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005949/0.1655, allocations: 8 kB / 363.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003286/0.1658, allocations: 55.53 kB / 363.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006982/0.1666, allocations: 119 kB / 363.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005557/0.1671, allocations: 119.9 kB / 363.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007136/0.1679, allocations: 493.7 kB / 364 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003053/0.1682, allocations: 119.8 kB / 364.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003249/0.1685, allocations: 171.2 kB / 364.3 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003592/0.1689, allocations: 191.1 kB / 364.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.139e-05/0.1689, allocations: 20 kB / 364.5 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.1691, allocations: 27.98 kB / 364.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.642e-05/0.1691, allocations: 67.62 kB / 364.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002205/0.1694, allocations: 224.6 kB / 364.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005356/0.1699, allocations: 462.2 kB / 365.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1699, allocations: 0 / 365.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.618e-06/0.1699, allocations: 0 / 365.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.1699, allocations: 3.938 kB / 365.3 MB, free: 7.234 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001386/0.1713, allocations: 0.6669 MB / 366 MB, free: 6.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.899e-05/0.1714, allocations: 12.03 kB / 366 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004037/0.1718, allocations: 84.28 kB / 366 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005859/0.1724, allocations: 327.2 kB / 366.4 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.1725, allocations: 25.03 kB / 366.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.118e-05/0.1725, allocations: 32.38 kB / 366.4 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007847/0.1733, allocations: 363.1 kB / 366.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.1734, allocations: 0 / 366.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.689e-05/0.1734, allocations: 16 kB / 366.8 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.1734, allocations: 8 kB / 366.8 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007709/0.1742, allocations: 282.4 kB / 367.1 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002503/0.1767, allocations: 1.434 MB / 368.5 MB, free: 3.809 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005537/0.1773, allocations: 234.3 kB / 368.7 MB, free: 3.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.1776, allocations: 124.7 kB / 368.9 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.697e-05/0.1776, allocations: 8 kB / 368.9 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.867e-05/0.1777, allocations: 34.56 kB / 368.9 MB, free: 3.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.924e-06/0.1777, allocations: 0 / 368.9 MB, free: 3.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.002017/0.1797, allocations: 0.7252 MB / 369.6 MB, free: 2.602 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.493e-05/0.1798, allocations: 59.41 kB / 369.7 MB, free: 2.531 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004827/0.1803, allocations: 312.5 kB / 370 MB, free: 2.223 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.988e-05/0.1804, allocations: 33.64 kB / 370 MB, free: 2.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.1806, allocations: 208.2 kB / 370.2 MB, free: 1.973 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.068e-05/0.1807, allocations: 82.83 kB / 370.3 MB, free: 1.891 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.293e-05/0.1808, allocations: 29.7 kB / 370.3 MB, free: 1.855 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003249/0.1812, allocations: 338.8 kB / 370.7 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.1814, allocations: 91.95 kB / 370.8 MB, free: 1.426 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.1817, allocations: 124.2 kB / 370.9 MB, free: 1.289 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005214/0.1822, allocations: 212.1 kB / 371.1 MB, free: 1.066 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.1823, allocations: 7.922 kB / 371.1 MB, free: 1.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008645/0.1831, allocations: 363.5 kB / 371.4 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.1832, allocations: 12.06 kB / 371.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1832, allocations: 3.938 kB / 371.5 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005516/0.1838, allocations: 118.4 kB / 371.6 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.184, allocations: 27.98 kB / 371.6 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2984/0.4823, allocations: 4.452 MB / 376.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000321/0.4827, allocations: 26.66 kB / 376.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.4827, allocations: 7.109 kB / 376.1 MB, free: 15.4 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002198/0.483, allocations: 158.4 kB / 376.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-05/0.483, allocations: 34.94 kB / 376.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.659e-05/0.4831, allocations: 39.75 kB / 376.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4831, allocations: 2.875 kB / 376.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.4832, allocations: 0.6094 kB / 376.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.4832, allocations: 2.938 kB / 376.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005349/0.4837, allocations: 376.2 kB / 376.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.4837, allocations: 2.172 kB / 376.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/0.4839, allocations: 29.88 kB / 376.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000395/0.4843, allocations: 115.6 kB / 376.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.4843, allocations: 4.891 kB / 376.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003705/0.488, allocations: 4.452 MB / 381.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.488, allocations: 4.641 kB / 381.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008159/0.4888, allocations: 417.9 kB / 381.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.489, allocations: 129.9 kB / 381.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.417e-05/0.489, allocations: 3 kB / 381.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.4893, allocations: 27.41 kB / 381.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.4894, allocations: 23.11 kB / 381.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.4895, allocations: 9.078 kB / 381.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00041/0.4899, allocations: 224.6 kB / 382.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4899, allocations: 0 / 382.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001288/0.4912, allocations: 114.4 kB / 382.2 MB, free: 10.67 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: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001543/0.4913, allocations: 106.5 kB / 382.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.4924, allocations: 0.5867 MB / 382.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4924, allocations: 0 / 382.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004981/0.4929, allocations: 495.4 kB / 383.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004997/0.4934, allocations: 59.41 kB / 383.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.495, allocations: 0.7964 MB / 384.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.4955, allocations: 0.7985 MB / 385.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001596/0.4956, allocations: 25.25 kB / 385.1 MB, free: 8.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.059e-05/0.4957, allocations: 23.45 kB / 385.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4957, allocations: 1.344 kB / 385.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of Templates: time 0.01304/0.5088, allocations: 4.867 MB / 390 MB, free: 7.988 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches