Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001686/0.001686, allocations: 194 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000793/0.0007927, allocations: 92.59 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001985/0.0001985, allocations: 8 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1875, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.002335/0.1898, allocations: 3.007 MB / 411 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008592/0.1907, allocations: 0.7667 MB / 411.8 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.1909, allocations: 7.938 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.191, allocations: 52.64 kB / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.1912, allocations: 110.2 kB / 412 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002012/0.1914, allocations: 83.84 kB / 412.1 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002993/0.1917, allocations: 470.3 kB / 412.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.1919, allocations: 120.7 kB / 412.6 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001864/0.1921, allocations: 171.3 kB / 412.8 MB, free: 22.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.1922, allocations: 179.2 kB / 413 MB, free: 22.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.7e-05/0.1923, allocations: 20 kB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.679e-05/0.1924, allocations: 27.98 kB / 413 MB, free: 22.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.027e-05/0.1924, allocations: 63.69 kB / 413.1 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.1925, allocations: 212.8 kB / 413.3 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.1927, allocations: 354.9 kB / 413.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1928, allocations: 0 / 413.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1928, allocations: 4 kB / 413.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1928, allocations: 0 / 413.6 MB, free: 22.07 MB / 298.7 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.0008373/0.1936, allocations: 0.6546 MB / 414.3 MB, free: 21.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.1937, allocations: 12.03 kB / 414.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002894/0.194, allocations: 84.34 kB / 414.4 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.1942, allocations: 311.2 kB / 414.7 MB, free: 20.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.1942, allocations: 25.03 kB / 414.7 MB, free: 20.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.502e-05/0.1943, allocations: 32.38 kB / 414.8 MB, free: 20.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004934/0.1948, allocations: 363 kB / 415.1 MB, free: 20.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1948, allocations: 0 / 415.1 MB, free: 20.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.1948, allocations: 20 kB / 415.1 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.1949, allocations: 8 kB / 415.1 MB, free: 20.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004618/0.1953, allocations: 274.4 kB / 415.4 MB, free: 20.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.1968, allocations: 1.434 MB / 416.8 MB, free: 18.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.1972, allocations: 227.4 kB / 417.1 MB, free: 18.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.1974, allocations: 116.8 kB / 417.2 MB, free: 18.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.1974, allocations: 3.984 kB / 417.2 MB, free: 18.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.1974, allocations: 46.48 kB / 417.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.1974, allocations: 0 / 417.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001307/0.1987, allocations: 0.7154 MB / 417.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.1988, allocations: 55.41 kB / 418 MB, free: 17.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.199, allocations: 304.5 kB / 418.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1991, allocations: 29.7 kB / 418.3 MB, free: 17.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.323e-05/0.1992, allocations: 212.2 kB / 418.5 MB, free: 16.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.262e-05/0.1992, allocations: 78.86 kB / 418.6 MB, free: 16.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.272e-05/0.1992, allocations: 0 / 418.6 MB, free: 16.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.966e-05/0.1993, allocations: 342.8 kB / 418.9 MB, free: 16.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.1995, allocations: 83.95 kB / 419 MB, free: 16.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.1996, allocations: 136.2 kB / 419.2 MB, free: 16.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003226/0.2, allocations: 208.2 kB / 419.4 MB, free: 15.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2, allocations: 0 / 419.4 MB, free: 15.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006124/0.2006, allocations: 375.5 kB / 419.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2006, allocations: 4 kB / 419.7 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.2006, allocations: 11.97 kB / 419.7 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003476/0.201, allocations: 122.4 kB / 419.9 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.2012, allocations: 39.98 kB / 419.9 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002348/0.2035, allocations: 4.437 MB / 424.3 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.2037, allocations: 31.84 kB / 424.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.925e-05/0.2038, allocations: 15.92 kB / 424.4 MB, free: 10.54 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.2039, allocations: 145.8 kB / 424.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.068e-05/0.204, allocations: 31.62 kB / 424.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.273e-05/0.204, allocations: 39.17 kB / 424.6 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.204, allocations: 192 / 424.6 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.204, allocations: 4 kB / 424.6 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.204, allocations: 4 kB / 424.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002975/0.2043, allocations: 377.3 kB / 425 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.2043, allocations: 3.938 kB / 425 MB, free: 9.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.2045, allocations: 23.98 kB / 425 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002787/0.2047, allocations: 114.6 kB / 425.1 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.2048, allocations: 8 kB / 425.1 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002271/0.207, allocations: 4.446 MB / 429.6 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2071, allocations: 4.031 kB / 429.6 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005067/0.2076, allocations: 417.5 kB / 430 MB, free: 4.449 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.421e-05/0.2077, allocations: 128.6 kB / 430.1 MB, free: 4.305 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/0.2077, allocations: 4.25 kB / 430.1 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.2079, allocations: 31.98 kB / 430.1 MB, free: 4.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.732e-05/0.208, allocations: 27.95 kB / 430.2 MB, free: 4.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.208, allocations: 4 kB / 430.2 MB, free: 4.238 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001616/0.2082, allocations: 215.1 kB / 430.4 MB, free: 4.027 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2082, allocations: 0 / 430.4 MB, free: 4.027 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005899/0.2088, allocations: 116.1 kB / 430.5 MB, free: 3.914 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001055/0.2089, allocations: 107.2 kB / 430.6 MB, free: 3.801 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007158/0.2096, allocations: 0.5854 MB / 431.2 MB, free: 3.176 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2097, allocations: 4 kB / 431.2 MB, free: 3.172 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003703/0.21, allocations: 484.1 kB / 431.7 MB, free: 2.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004141/0.2105, allocations: 59.42 kB / 431.7 MB, free: 2.605 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009004/0.2114, allocations: 0.7875 MB / 432.5 MB, free: 1.785 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001652/0.2115, allocations: 0.7912 MB / 433.3 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.896e-05/0.2116, allocations: 19.44 kB / 433.3 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2116, allocations: 3.938 kB / 433.3 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of Templates: time 0.009127/0.2207, allocations: 8.25 MB / 441.6 MB, free: 8.719 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches