Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008719/0.000872, allocations: 175.6 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 225.7 MB / 243.2 MB, free: 10.19 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006921/0.0006921, allocations: 90.31 kB / 294.4 MB, free: 9.738 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002374/0.0002376, allocations: 8 kB / 354.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.1823, allocations: 50.41 MB / 404.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.002223/0.1846, allocations: 2.995 MB / 407.6 MB, free: 28.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007051/0.1853, allocations: 0.72 MB / 408.3 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.1854, allocations: 4 kB / 408.3 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.1855, allocations: 51.61 kB / 408.3 MB, free: 27.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.1857, allocations: 113 kB / 408.5 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001945/0.1859, allocations: 91.91 kB / 408.5 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002861/0.1862, allocations: 493.1 kB / 409 MB, free: 26.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.1864, allocations: 119.9 kB / 409.1 MB, free: 26.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001389/0.1865, allocations: 171.2 kB / 409.3 MB, free: 26.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.1867, allocations: 183.1 kB / 409.5 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.335e-05/0.1867, allocations: 20 kB / 409.5 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.87e-05/0.1868, allocations: 20 kB / 409.5 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.475e-05/0.1868, allocations: 67.62 kB / 409.6 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.187, allocations: 228.6 kB / 409.8 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.1872, allocations: 462.1 kB / 410.3 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1872, allocations: 0 / 410.3 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1872, allocations: 0 / 410.3 MB, free: 25.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.1872, allocations: 0 / 410.3 MB, free: 25.65 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.0007108/0.188, allocations: 0.6624 MB / 410.9 MB, free: 24.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.727e-05/0.188, allocations: 8.031 kB / 410.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.576e-05/0.1881, allocations: 48.38 kB / 411 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000232/0.1883, allocations: 311.2 kB / 411.3 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.1883, allocations: 25.03 kB / 411.3 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.574e-05/0.1884, allocations: 40.38 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.1888, allocations: 363 kB / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1889, allocations: 0 / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.1889, allocations: 16 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.1889, allocations: 8 kB / 411.7 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004399/0.1893, allocations: 282.4 kB / 412 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001345/0.1907, allocations: 1.426 MB / 413.4 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003217/0.191, allocations: 230.3 kB / 413.7 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.1912, allocations: 116.8 kB / 413.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.1912, allocations: 4 kB / 413.8 MB, free: 21.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.775e-05/0.1913, allocations: 38.5 kB / 413.8 MB, free: 21.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.182e-06/0.1913, allocations: 3.938 kB / 413.8 MB, free: 21.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001193/0.1925, allocations: 0.7232 MB / 414.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.997e-05/0.1925, allocations: 55.41 kB / 414.6 MB, free: 21.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.1927, allocations: 300.5 kB / 414.9 MB, free: 20.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.1927, allocations: 33.7 kB / 414.9 MB, free: 20.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.151e-05/0.1928, allocations: 204.2 kB / 415.1 MB, free: 20.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.473e-05/0.1928, allocations: 74.92 kB / 415.2 MB, free: 20.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/0.1929, allocations: 4 kB / 415.2 MB, free: 20.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.79e-05/0.1929, allocations: 342.8 kB / 415.5 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.1931, allocations: 87.97 kB / 415.6 MB, free: 19.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.1933, allocations: 131.4 kB / 415.7 MB, free: 19.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002999/0.1936, allocations: 212.1 kB / 416 MB, free: 19.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1936, allocations: 4 kB / 416 MB, free: 19.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005867/0.1942, allocations: 379.5 kB / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.1942, allocations: 8 kB / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1942, allocations: 0 / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003211/0.1945, allocations: 122.4 kB / 416.5 MB, free: 19.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.1947, allocations: 27.98 kB / 416.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002195/0.1969, allocations: 4.445 MB / 420.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.1971, allocations: 35.77 kB / 421 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.1971, allocations: 11.94 kB / 421 MB, free: 14.14 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 (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.0001009/0.1972, allocations: 153.8 kB / 421.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.688e-05/0.1973, allocations: 31.91 kB / 421.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.807e-05/0.1973, allocations: 39.17 kB / 421.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1973, allocations: 4 kB / 421.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.1973, allocations: 3.938 kB / 421.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1973, allocations: 3.984 kB / 421.2 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.1976, allocations: 369.3 kB / 421.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1976, allocations: 8 kB / 421.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.1977, allocations: 23.98 kB / 421.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002589/0.198, allocations: 114.5 kB / 421.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.198, allocations: 4 kB / 421.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002101/0.2001, allocations: 4.449 MB / 426.2 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2001, allocations: 3.984 kB / 426.2 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004538/0.2006, allocations: 419.9 kB / 426.6 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.94e-05/0.2007, allocations: 124.6 kB / 426.7 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.81e-05/0.2007, allocations: 11.94 kB / 426.7 MB, free: 7.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.2009, allocations: 31.97 kB / 426.7 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.513e-05/0.201, allocations: 19.97 kB / 426.8 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.201, allocations: 4 kB / 426.8 MB, free: 7.844 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001439/0.2012, allocations: 219.1 kB / 427 MB, free: 7.629 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2012, allocations: 0 / 427 MB, free: 7.629 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005015/0.2017, allocations: 111.8 kB / 427.1 MB, free: 7.52 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 (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 8.259e-05/0.2018, allocations: 116.4 kB / 427.2 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006217/0.2024, allocations: 0.5855 MB / 427.8 MB, free: 6.773 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2024, allocations: 0 / 427.8 MB, free: 6.773 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003442/0.2028, allocations: 483.1 kB / 428.3 MB, free: 6.266 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.2032, allocations: 58.42 kB / 428.3 MB, free: 6.211 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008026/0.204, allocations: 0.7885 MB / 429.1 MB, free: 5.398 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.2041, allocations: 0.7951 MB / 429.9 MB, free: 4.574 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.394e-05/0.2042, allocations: 26.95 kB / 429.9 MB, free: 4.547 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.297e-05/0.2043, allocations: 23.44 kB / 429.9 MB, free: 4.523 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2043, allocations: 4 kB / 429.9 MB, free: 4.52 MB / 298.7 MB Notification: Performance of Templates: time 0.006842/0.2111, allocations: 4.861 MB / 434.8 MB, free: 15.68 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches