Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002095/0.002095, allocations: 217.2 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 8 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 47.92 kB / 378.3 MB, free: 2.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2531, allocations: 53.37 MB / 431.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005294/0.2584, allocations: 3.525 MB / 435.2 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.2603, allocations: 0.8584 MB / 436 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002545/0.2606, allocations: 11.94 kB / 436 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002512/0.2608, allocations: 71.28 kB / 436.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002886/0.2611, allocations: 134.8 kB / 436.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004148/0.2615, allocations: 135.8 kB / 436.4 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006087/0.2622, allocations: 0.5055 MB / 436.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.2624, allocations: 91.7 kB / 437 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003464/0.2628, allocations: 207.2 kB / 437.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.263, allocations: 211.1 kB / 437.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.954e-05/0.2631, allocations: 40 kB / 437.4 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.2632, allocations: 47.94 kB / 437.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.44e-05/0.2633, allocations: 95.56 kB / 437.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.2635, allocations: 218.9 kB / 437.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006041/0.2641, allocations: 0.4976 MB / 438.3 MB, free: 236 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2641, allocations: 0 / 438.3 MB, free: 236 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2641, allocations: 0 / 438.3 MB, free: 236 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.2641, allocations: 4 kB / 438.3 MB, free: 232 kB / 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.001281/0.2654, allocations: 0.6606 MB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.2655, allocations: 8.031 kB / 438.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003685/0.2658, allocations: 84.58 kB / 439 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005878/0.2664, allocations: 262.3 kB / 439.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.2664, allocations: 25.03 kB / 439.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.964e-05/0.2665, allocations: 32.31 kB / 439.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006986/0.2672, allocations: 363.1 kB / 439.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.2672, allocations: 0 / 439.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/0.2672, allocations: 16 kB / 439.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.2673, allocations: 8 kB / 439.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005553/0.2678, allocations: 266.4 kB / 440 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.2699, allocations: 1.38 MB / 441.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004165/0.2703, allocations: 200.1 kB / 441.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002228/0.2705, allocations: 101.2 kB / 441.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.2706, allocations: 4 kB / 441.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.2706, allocations: 42.42 kB / 441.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.2706, allocations: 0 / 441.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001454/0.2721, allocations: 479.2 kB / 442.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.2721, allocations: 59.39 kB / 442.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003616/0.2725, allocations: 308.6 kB / 442.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.819e-05/0.2725, allocations: 33.7 kB / 442.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00018/0.2727, allocations: 220.5 kB / 442.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.969e-05/0.2728, allocations: 79.31 kB / 442.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.288e-05/0.2729, allocations: 49.66 kB / 442.9 MB, free: 11.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.273, allocations: 342.8 kB / 443.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.2732, allocations: 79.95 kB / 443.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/0.2735, allocations: 129 kB / 443.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004202/0.2739, allocations: 192.1 kB / 443.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.2739, allocations: 4 kB / 443.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007968/0.2747, allocations: 359.8 kB / 444 MB, free: 10.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.2747, allocations: 8 kB / 444 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.2747, allocations: 3.984 kB / 444 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004592/0.2752, allocations: 126.5 kB / 444.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.2754, allocations: 23.98 kB / 444.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004415/0.2798, allocations: 4.668 MB / 448.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/0.28, allocations: 27.83 kB / 448.8 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.28, allocations: 4 kB / 448.8 MB, free: 5.02 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.0001898/0.2802, allocations: 149.7 kB / 449 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.042e-05/0.2803, allocations: 43.81 kB / 449 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.888e-05/0.2803, allocations: 39.27 kB / 449.1 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2803, allocations: 0 / 449.1 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.2803, allocations: 0 / 449.1 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2803, allocations: 4.109 kB / 449.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004319/0.2808, allocations: 356.3 kB / 449.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.2808, allocations: 7.938 kB / 449.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.2809, allocations: 19.97 kB / 449.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003163/0.2812, allocations: 114.5 kB / 449.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.2812, allocations: 4 kB / 449.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003954/0.2852, allocations: 4.658 MB / 454.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.2852, allocations: 4.234 kB / 454.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006419/0.2858, allocations: 405.6 kB / 454.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.2859, allocations: 51.72 kB / 454.7 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/0.286, allocations: 8 kB / 454.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.2862, allocations: 19.98 kB / 454.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.901e-05/0.2863, allocations: 27.95 kB / 454.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.2863, allocations: 11.92 kB / 454.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002302/0.2866, allocations: 223.1 kB / 454.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2866, allocations: 0 / 454.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006555/0.2872, allocations: 119.8 kB / 455.1 MB, free: 14.36 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.0001211/0.2873, allocations: 103.2 kB / 455.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009185/0.2882, allocations: 0.5626 MB / 455.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2882, allocations: 0 / 455.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005398/0.2888, allocations: 475.8 kB / 456.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/0.2892, allocations: 59.22 kB / 456.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.2904, allocations: 0.6442 MB / 456.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.2909, allocations: 0.7914 MB / 457.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001049/0.291, allocations: 30.95 kB / 457.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.286e-05/0.291, allocations: 19.44 kB / 457.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.291, allocations: 0 / 457.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of Templates: time 0.01172/0.3027, allocations: 5.698 MB / 463.4 MB, free: 5.91 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 4.865932428045198]