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.001393/0.001393, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001402/0.001402, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001153, allocations: 52.45 kB / 301.3 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09568/0.09685, allocations: 49.45 MB / 350.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005243/0.1021, allocations: 3.485 MB / 354.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.1038, allocations: 0.752 MB / 355 MB, free: 148 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004129/0.1042, allocations: 11.88 kB / 355 MB, free: 136 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.1046, allocations: 67.34 kB / 355 MB, free: 68 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000405/0.105, allocations: 126.9 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.1054, allocations: 119.8 kB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006247/0.106, allocations: 0.4937 MB / 355.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000287/0.1063, allocations: 139.1 kB / 355.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003181/0.1066, allocations: 187.3 kB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003008/0.1069, allocations: 211.1 kB / 356.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.107, allocations: 44 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.383e-05/0.1071, allocations: 40 kB / 356.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.398e-05/0.1072, allocations: 87.62 kB / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002542/0.1075, allocations: 222.9 kB / 356.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004774/0.108, allocations: 482.3 kB / 357.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.108, allocations: 3.984 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.108, allocations: 0 / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.614e-05/0.108, allocations: 0 / 357.2 MB, free: 13.93 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.001409/0.1094, allocations: 0.7207 MB / 357.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.1095, allocations: 8.031 kB / 357.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.1096, allocations: 48.38 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004138/0.11, allocations: 307.3 kB / 358.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.11, allocations: 28.97 kB / 358.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-05/0.1101, allocations: 36.38 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006324/0.1107, allocations: 355 kB / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1108, allocations: 0 / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/0.1108, allocations: 16 kB / 358.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.1108, allocations: 11.98 kB / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005581/0.1114, allocations: 274.4 kB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.1134, allocations: 1.415 MB / 360.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004234/0.1139, allocations: 218.3 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/0.1141, allocations: 112.8 kB / 360.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.1141, allocations: 7.984 kB / 360.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.1142, allocations: 38.56 kB / 360.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.1142, allocations: 0 / 360.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001553/0.1157, allocations: 0.6981 MB / 361.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.1158, allocations: 59.41 kB / 361.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.1161, allocations: 300.6 kB / 361.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.1161, allocations: 29.7 kB / 361.8 MB, free: 8.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.1163, allocations: 212.1 kB / 362 MB, free: 8.746 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.689e-05/0.1163, allocations: 78.8 kB / 362.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.543e-05/0.1164, allocations: 49.7 kB / 362.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1166, allocations: 338.8 kB / 362.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.1168, allocations: 83.95 kB / 362.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.117, allocations: 120.8 kB / 362.7 MB, free: 8.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003929/0.1174, allocations: 200.2 kB / 362.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.1174, allocations: 0 / 362.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007543/0.1182, allocations: 363.5 kB / 363.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.1182, allocations: 8 kB / 363.2 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.1182, allocations: 4 kB / 363.2 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004417/0.1187, allocations: 118.4 kB / 363.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.1189, allocations: 27.98 kB / 363.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/0.123, allocations: 4.97 MB / 368.3 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.1232, allocations: 23.83 kB / 368.4 MB, free: 1.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.1233, allocations: 12 kB / 368.4 MB, free: 1.895 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.0001763/0.1235, allocations: 149.8 kB / 368.5 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.381e-05/0.1236, allocations: 39.64 kB / 368.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.027e-05/0.1236, allocations: 43.11 kB / 368.6 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1236, allocations: 0 / 368.6 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.1236, allocations: 128 / 368.6 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.1237, allocations: 4 kB / 368.6 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004222/0.1241, allocations: 381.2 kB / 369 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1241, allocations: 0 / 369 MB, free: 1.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.1242, allocations: 19.98 kB / 369 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003334/0.1246, allocations: 126.4 kB / 369.1 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.1246, allocations: 3.984 kB / 369.1 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.179/0.3036, allocations: 4.951 MB / 374.1 MB, free: 21.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3036, allocations: 0 / 374.1 MB, free: 21.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006643/0.3043, allocations: 401.8 kB / 374.5 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/0.3044, allocations: 127.2 kB / 374.6 MB, free: 20.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.652e-05/0.3045, allocations: 4.5 kB / 374.6 MB, free: 20.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.3047, allocations: 21.06 kB / 374.6 MB, free: 20.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.3048, allocations: 30.12 kB / 374.7 MB, free: 20.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.3049, allocations: 5.25 kB / 374.7 MB, free: 20.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002336/0.3051, allocations: 218.3 kB / 374.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3051, allocations: 0 / 374.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000707/0.3058, allocations: 119.8 kB / 375 MB, free: 20.9 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.0001363/0.306, allocations: 114.6 kB / 375.1 MB, free: 20.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009076/0.3069, allocations: 0.5771 MB / 375.7 MB, free: 20.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3069, allocations: 0 / 375.7 MB, free: 20.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004735/0.3074, allocations: 481.9 kB / 376.2 MB, free: 20.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.3079, allocations: 60.25 kB / 376.2 MB, free: 20.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.3091, allocations: 0.6577 MB / 376.9 MB, free: 19.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.3094, allocations: 0.8007 MB / 377.7 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.572e-05/0.3095, allocations: 20.08 kB / 377.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3095, allocations: 1.375 kB / 377.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of Templates: time 0.01158/0.3211, allocations: 8.277 MB / 386 MB, free: 16.88 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