Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001072/0.001072, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008994/0.0008994, allocations: 92.72 kB / 299.8 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002652/0.0002654, allocations: 8 kB / 360.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2755, allocations: 51.42 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003434/0.279, allocations: 3.016 MB / 415.1 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.2806, allocations: 0.9929 MB / 416.1 MB, free: 21.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.2808, allocations: 8.625 kB / 416.1 MB, free: 21.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.281, allocations: 47.61 kB / 416.1 MB, free: 21.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002407/0.2813, allocations: 119.6 kB / 416.2 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003128/0.2816, allocations: 87.91 kB / 416.3 MB, free: 21.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000473/0.2821, allocations: 489.7 kB / 416.8 MB, free: 21.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003013/0.2824, allocations: 127.6 kB / 416.9 MB, free: 20.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003266/0.2827, allocations: 167.3 kB / 417.1 MB, free: 20.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002667/0.283, allocations: 195 kB / 417.3 MB, free: 20.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.686e-05/0.2831, allocations: 20 kB / 417.3 MB, free: 20.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.2832, allocations: 20 kB / 417.3 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.101e-05/0.2833, allocations: 67.69 kB / 417.4 MB, free: 20.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002229/0.2835, allocations: 224.6 kB / 417.6 MB, free: 20.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004477/0.2839, allocations: 454.2 kB / 418 MB, free: 19.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.946e-06/0.284, allocations: 3.938 kB / 418 MB, free: 19.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.647e-06/0.284, allocations: 0 / 418 MB, free: 19.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.284, allocations: 4 kB / 418 MB, free: 19.8 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.0009945/0.285, allocations: 0.6702 MB / 418.7 MB, free: 19.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/0.2851, allocations: 8.031 kB / 418.7 MB, free: 19.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003314/0.2854, allocations: 84.33 kB / 418.8 MB, free: 19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.2858, allocations: 307.2 kB / 419.1 MB, free: 18.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.777e-05/0.2858, allocations: 25.03 kB / 419.1 MB, free: 18.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.486e-05/0.2859, allocations: 36.38 kB / 419.2 MB, free: 18.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005672/0.2864, allocations: 359 kB / 419.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.2865, allocations: 0 / 419.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.2865, allocations: 20 kB / 419.5 MB, free: 18.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.2865, allocations: 8 kB / 419.5 MB, free: 18.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004953/0.287, allocations: 278.4 kB / 419.8 MB, free: 17.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.2887, allocations: 1.43 MB / 421.2 MB, free: 16.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003656/0.2891, allocations: 222.3 kB / 421.5 MB, free: 16.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.2893, allocations: 116.8 kB / 421.6 MB, free: 16.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.2893, allocations: 4 kB / 421.6 MB, free: 16.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.2893, allocations: 38.56 kB / 421.6 MB, free: 16.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.2893, allocations: 0 / 421.6 MB, free: 16.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001328/0.2907, allocations: 0.7318 MB / 422.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.2907, allocations: 55.41 kB / 422.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.291, allocations: 304.5 kB / 422.7 MB, free: 14.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.538e-05/0.291, allocations: 29.7 kB / 422.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.2911, allocations: 204.2 kB / 422.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.299e-05/0.2912, allocations: 78.91 kB / 423 MB, free: 14.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.174e-05/0.2912, allocations: 4 kB / 423 MB, free: 14.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.223e-05/0.2913, allocations: 342.8 kB / 423.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.2915, allocations: 83.95 kB / 423.4 MB, free: 14.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.2916, allocations: 128.2 kB / 423.6 MB, free: 13.94 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003241/0.292, allocations: 212.1 kB / 423.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.292, allocations: 0 / 423.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006481/0.2926, allocations: 379.7 kB / 424.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.2927, allocations: 8 kB / 424.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2927, allocations: 96 / 424.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003829/0.2931, allocations: 122.4 kB / 424.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.2932, allocations: 39.86 kB / 424.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00248/0.2957, allocations: 4.441 MB / 428.7 MB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.2959, allocations: 35.83 kB / 428.8 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.296, allocations: 11.94 kB / 428.8 MB, free: 8.266 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.0001378/0.2961, allocations: 149.8 kB / 428.9 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.656e-05/0.2962, allocations: 31.62 kB / 429 MB, free: 8.078 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.645e-05/0.2962, allocations: 35.17 kB / 429 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.2962, allocations: 4 kB / 429 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.2962, allocations: 0 / 429 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.2962, allocations: 4.172 kB / 429 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000313/0.2966, allocations: 381.3 kB / 429.4 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.2966, allocations: 0 / 429.4 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.2967, allocations: 31.91 kB / 429.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002646/0.297, allocations: 110.5 kB / 429.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.297, allocations: 4 kB / 429.5 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002325/0.2993, allocations: 4.449 MB / 434 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2993, allocations: 144 / 434 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000497/0.2998, allocations: 416 kB / 434.4 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.196e-05/0.2999, allocations: 128.6 kB / 434.5 MB, free: 2.039 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.364e-05/0.3, allocations: 8 kB / 434.5 MB, free: 2.031 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.3002, allocations: 28.17 kB / 434.5 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.771e-05/0.3003, allocations: 23.91 kB / 434.6 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.3003, allocations: 8 kB / 434.6 MB, free: 1.973 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001777/0.3005, allocations: 223.1 kB / 434.8 MB, free: 1.754 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3005, allocations: 0 / 434.8 MB, free: 1.754 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005877/0.3011, allocations: 107.8 kB / 434.9 MB, free: 1.648 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 0.0001343/0.3012, allocations: 119.2 kB / 435 MB, free: 1.523 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007461/0.302, allocations: 0.5777 MB / 435.6 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.302, allocations: 4 kB / 435.6 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003817/0.3024, allocations: 484 kB / 436.1 MB, free: 400 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004314/0.3028, allocations: 69.44 kB / 436.1 MB, free: 332 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.3039, allocations: 0.7873 MB / 436.9 MB, free: 15.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.3043, allocations: 0.7988 MB / 437.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001201/0.3044, allocations: 26.97 kB / 437.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.923e-05/0.3044, allocations: 19.44 kB / 437.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3044, allocations: 0 / 437.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of Templates: time 0.009767/0.3142, allocations: 4.861 MB / 442.6 MB, free: 9.797 MB / 314.7 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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches