Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001567/0.001567, allocations: 113 kB / 21.17 MB, free: 0.7812 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00176/0.00176, allocations: 218.7 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.424/1.424, allocations: 230.4 MB / 258.1 MB, free: 8.152 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 71.83 kB / 378.7 MB, free: 2.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2864, allocations: 53.32 MB / 432.1 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004957/0.2914, allocations: 3.538 MB / 435.6 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.2929, allocations: 0.8545 MB / 436.5 MB, free: 3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001865/0.2931, allocations: 7.938 kB / 436.5 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002151/0.2933, allocations: 75.28 kB / 436.5 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002499/0.2936, allocations: 130.8 kB / 436.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003855/0.294, allocations: 135.8 kB / 436.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005409/0.2945, allocations: 0.5016 MB / 437.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.2947, allocations: 95.3 kB / 437.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002858/0.295, allocations: 203.3 kB / 437.6 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000268/0.2953, allocations: 207 kB / 437.8 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.494e-05/0.2953, allocations: 44 kB / 437.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.692e-05/0.2954, allocations: 43.94 kB / 437.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.483e-05/0.2955, allocations: 91.67 kB / 438 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000207/0.2957, allocations: 226.8 kB / 438.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005519/0.2963, allocations: 0.5017 MB / 438.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2963, allocations: 0 / 438.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2963, allocations: 0 / 438.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.2963, allocations: 0 / 438.7 MB, free: 0.75 MB / 334.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.001247/0.2975, allocations: 0.7306 MB / 439.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.2976, allocations: 15.97 kB / 439.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003525/0.2979, allocations: 72.62 kB / 439.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005188/0.2985, allocations: 331.5 kB / 439.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.2985, allocations: 25.03 kB / 439.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.256e-05/0.2985, allocations: 32.38 kB / 439.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006189/0.2992, allocations: 360.6 kB / 440.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.2992, allocations: 0 / 440.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.598e-05/0.2992, allocations: 16 kB / 440.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.2992, allocations: 8 kB / 440.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005441/0.2998, allocations: 270.4 kB / 440.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002041/0.3018, allocations: 1.427 MB / 441.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004236/0.3022, allocations: 198.4 kB / 442.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.3024, allocations: 105.2 kB / 442.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.3025, allocations: 4 kB / 442.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.3025, allocations: 42.42 kB / 442.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.363e-06/0.3025, allocations: 0 / 442.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001537/0.3041, allocations: 0.6898 MB / 443 MB, free: 12.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.3041, allocations: 55.41 kB / 443 MB, free: 12.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003483/0.3044, allocations: 312.5 kB / 443.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.3045, allocations: 29.7 kB / 443.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.3046, allocations: 208.5 kB / 443.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.854e-05/0.3047, allocations: 91.25 kB / 443.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.21e-05/0.3048, allocations: 53.7 kB / 443.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.305, allocations: 346.7 kB / 444.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.3052, allocations: 75.97 kB / 444.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.3054, allocations: 124.7 kB / 444.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/0.3058, allocations: 204.1 kB / 444.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3058, allocations: 0 / 444.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007086/0.3065, allocations: 355.8 kB / 444.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3065, allocations: 6.812 kB / 444.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.3065, allocations: 4 kB / 444.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004139/0.307, allocations: 114.5 kB / 444.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.3071, allocations: 35.91 kB / 445 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004604/0.3117, allocations: 4.983 MB / 449.9 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.312, allocations: 23.83 kB / 450 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.312, allocations: 8 kB / 450 MB, free: 4.664 MB / 350.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.0002011/0.3122, allocations: 149.8 kB / 450.1 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/0.3123, allocations: 35.77 kB / 450.1 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.726e-05/0.3123, allocations: 47.31 kB / 450.2 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.3123, allocations: 3.938 kB / 450.2 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3123, allocations: 4 kB / 450.2 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.3123, allocations: 0 / 450.2 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004684/0.3128, allocations: 377.3 kB / 450.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3128, allocations: 0 / 450.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.3129, allocations: 23.92 kB / 450.6 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003221/0.3132, allocations: 110.5 kB / 450.7 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.3133, allocations: 8 kB / 450.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004139/0.3174, allocations: 4.968 MB / 455.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3174, allocations: 3.938 kB / 455.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006373/0.318, allocations: 401.6 kB / 456.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001482/0.3182, allocations: 132.9 kB / 456.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.3182, allocations: 0 / 456.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.3185, allocations: 23.92 kB / 456.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.3185, allocations: 31.95 kB / 456.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.3186, allocations: 4 kB / 456.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.3188, allocations: 219.1 kB / 456.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3188, allocations: 0 / 456.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006497/0.3194, allocations: 119.8 kB / 456.6 MB, free: 13.5 MB / 366.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.0001406/0.3196, allocations: 103.2 kB / 456.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009574/0.3205, allocations: 0.5626 MB / 457.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3205, allocations: 0 / 457.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005436/0.3211, allocations: 474.6 kB / 457.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.3215, allocations: 65.59 kB / 457.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.3228, allocations: 0.6772 MB / 458.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.3232, allocations: 0.7953 MB / 459.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.556e-05/0.3233, allocations: 23.42 kB / 459.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3233, allocations: 0 / 459.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of Templates: time 0.01108/0.3344, allocations: 8.488 MB / 467.8 MB, free: 2.207 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.17442974401638]