Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001726/0.001725, allocations: 109.2 kB / 17.17 MB, free: 6.32 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.002108/0.002108, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.348/2.348, allocations: 222.9 MB / 241.7 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 47.03 kB / 300.6 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1623, allocations: 49.44 MB / 350.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.009152/0.1716, allocations: 3.507 MB / 353.6 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003037/0.1747, allocations: 0.7559 MB / 354.3 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006832/0.1754, allocations: 4 kB / 354.3 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004752/0.1759, allocations: 47.61 kB / 354.4 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000893/0.1769, allocations: 119 kB / 354.5 MB, free: 412 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006524/0.1776, allocations: 95.84 kB / 354.6 MB, free: 316 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001215/0.1788, allocations: 493.6 kB / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004832/0.1794, allocations: 119.8 kB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005916/0.18, allocations: 171.3 kB / 355.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005352/0.1805, allocations: 203 kB / 355.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.1807, allocations: 28 kB / 355.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001682/0.1809, allocations: 24 kB / 355.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.181, allocations: 71.62 kB / 355.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004383/0.1815, allocations: 210.9 kB / 355.9 MB, free: 15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006034/0.1821, allocations: 355.1 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.044e-05/0.1821, allocations: 0 / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1821, allocations: 0 / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.521e-05/0.1822, allocations: 0 / 356.2 MB, free: 14.66 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.002412/0.1846, allocations: 0.7129 MB / 356.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.223e-05/0.1847, allocations: 8.031 kB / 356.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002336/0.185, allocations: 52.36 kB / 357 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000772/0.1857, allocations: 315.2 kB / 357.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.325e-05/0.1858, allocations: 29.03 kB / 357.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.884e-05/0.1859, allocations: 32.31 kB / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.1871, allocations: 355.1 kB / 357.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.1872, allocations: 0 / 357.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.985e-05/0.1873, allocations: 12 kB / 357.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.1873, allocations: 12 kB / 357.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.1884, allocations: 270.4 kB / 358 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003939/0.1923, allocations: 1.422 MB / 359.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008167/0.1932, allocations: 226.3 kB / 359.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003905/0.1936, allocations: 120.7 kB / 359.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.058e-05/0.1937, allocations: 4 kB / 359.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.131e-05/0.1938, allocations: 34.56 kB / 359.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 5.12e-06/0.1938, allocations: 0 / 359.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.002792/0.1966, allocations: 0.6963 MB / 360.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.1967, allocations: 51.41 kB / 360.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007462/0.1975, allocations: 308.6 kB / 360.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.617e-05/0.1975, allocations: 29.7 kB / 360.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002541/0.1978, allocations: 212.1 kB / 361.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.198, allocations: 74.89 kB / 361.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.1981, allocations: 49.64 kB / 361.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.1984, allocations: 342.8 kB / 361.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003956/0.1988, allocations: 83.95 kB / 361.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003841/0.1992, allocations: 120.2 kB / 361.7 MB, free: 8.781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007605/0.2, allocations: 200.1 kB / 361.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.2, allocations: 0 / 361.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001252/0.2013, allocations: 359.5 kB / 362.3 MB, free: 8.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/0.2013, allocations: 8 kB / 362.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.2013, allocations: 0 / 362.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006232/0.202, allocations: 122.4 kB / 362.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.2022, allocations: 23.98 kB / 362.4 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006945/0.2092, allocations: 4.457 MB / 366.9 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00054/0.2098, allocations: 28.02 kB / 366.9 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.948e-05/0.2099, allocations: 4 kB / 366.9 MB, free: 3.152 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.0003868/0.2103, allocations: 153.8 kB / 367.1 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.2105, allocations: 35.56 kB / 367.1 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.2106, allocations: 39.17 kB / 367.1 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.2106, allocations: 4 kB / 367.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2106, allocations: 0 / 367.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.2107, allocations: 3.984 kB / 367.1 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008646/0.2115, allocations: 377.2 kB / 367.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.2116, allocations: 0 / 367.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002342/0.2118, allocations: 20.08 kB / 367.5 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007694/0.2126, allocations: 122.6 kB / 367.7 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.711e-05/0.2127, allocations: 11.98 kB / 367.7 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3467/0.5594, allocations: 4.433 MB / 372.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.5595, allocations: 3.062 kB / 372.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001375/0.5609, allocations: 402.3 kB / 372.5 MB, free: 22.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002987/0.5612, allocations: 124.5 kB / 372.6 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.5613, allocations: 8.859 kB / 372.6 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005052/0.5618, allocations: 21.31 kB / 372.6 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.5621, allocations: 26.59 kB / 372.7 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/0.5621, allocations: 10.25 kB / 372.7 MB, free: 22.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005166/0.5627, allocations: 217 kB / 372.9 MB, free: 22.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.72e-07/0.5627, allocations: 1.031 kB / 372.9 MB, free: 22.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001397/0.5641, allocations: 117.8 kB / 373 MB, free: 22.47 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.000227/0.5643, allocations: 103.3 kB / 373.1 MB, free: 22.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001777/0.5661, allocations: 0.5753 MB / 373.7 MB, free: 22.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.5662, allocations: 0 / 373.7 MB, free: 22.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009417/0.5671, allocations: 477.9 kB / 374.2 MB, free: 21.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.5681, allocations: 57.64 kB / 374.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.5705, allocations: 0.7901 MB / 375 MB, free: 21.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004674/0.571, allocations: 0.7924 MB / 375.8 MB, free: 20.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.5712, allocations: 21.2 kB / 375.8 MB, free: 20.55 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5712, allocations: 0 / 375.8 MB, free: 20.55 MB / 302.1 MB Notification: Performance of Templates: time 0.02422/0.5954, allocations: 8.294 MB / 384.1 MB, free: 18.38 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches