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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 180.3 kB / 23.7 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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=5012,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=5012,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 47.92 kB / 370.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2508, allocations: 52.16 MB / 423.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004867/0.2557, allocations: 3.202 MB / 426.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.257, allocations: 0.7321 MB / 427 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.2571, allocations: 11.94 kB / 427 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.2573, allocations: 63.36 kB / 427.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002355/0.2576, allocations: 138.8 kB / 427.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.2579, allocations: 107.9 kB / 427.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005467/0.2585, allocations: 0.4977 MB / 427.8 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.2587, allocations: 87.69 kB / 427.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000245/0.2589, allocations: 203.2 kB / 428.1 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.2592, allocations: 183.1 kB / 428.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.47e-05/0.2592, allocations: 40 kB / 428.3 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.395e-05/0.2593, allocations: 44 kB / 428.4 MB, free: 9.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.673e-05/0.2594, allocations: 91.62 kB / 428.4 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001792/0.2596, allocations: 179.2 kB / 428.6 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005402/0.2601, allocations: 0.4937 MB / 429.1 MB, free: 8.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2601, allocations: 0 / 429.1 MB, free: 8.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2601, allocations: 0 / 429.1 MB, free: 8.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.2601, allocations: 0 / 429.1 MB, free: 8.379 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.001147/0.2613, allocations: 0.6606 MB / 429.8 MB, free: 7.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2613, allocations: 8.031 kB / 429.8 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.546e-05/0.2614, allocations: 52.61 kB / 429.8 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004515/0.2618, allocations: 258.3 kB / 430.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.2619, allocations: 25.03 kB / 430.1 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.658e-05/0.2619, allocations: 36.31 kB / 430.1 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006885/0.2626, allocations: 432.2 kB / 430.6 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.2626, allocations: 0 / 430.6 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.424e-05/0.2626, allocations: 16 kB / 430.6 MB, free: 6.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.2627, allocations: 8 kB / 430.6 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005539/0.2632, allocations: 266.4 kB / 430.8 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/0.2652, allocations: 1.225 MB / 432.1 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.2656, allocations: 194.5 kB / 432.3 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.2658, allocations: 100.8 kB / 432.4 MB, free: 4.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.2658, allocations: 4 kB / 432.4 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/0.2659, allocations: 42.56 kB / 432.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.2659, allocations: 0 / 432.4 MB, free: 4.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001437/0.2673, allocations: 483.3 kB / 432.9 MB, free: 4.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.2674, allocations: 51.41 kB / 432.9 MB, free: 4.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.2677, allocations: 284.6 kB / 433.2 MB, free: 4.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/0.2677, allocations: 33.7 kB / 433.2 MB, free: 4.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.2679, allocations: 220.3 kB / 433.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.557e-05/0.268, allocations: 83.28 kB / 433.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.863e-05/0.268, allocations: 49.64 kB / 433.6 MB, free: 3.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.2682, allocations: 346.7 kB / 433.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.2684, allocations: 71.97 kB / 434 MB, free: 3.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.2687, allocations: 128.2 kB / 434.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004153/0.2691, allocations: 200.2 kB / 434.3 MB, free: 2.891 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2691, allocations: 0 / 434.3 MB, free: 2.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007448/0.2698, allocations: 351.6 kB / 434.7 MB, free: 2.531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.2698, allocations: 10.19 kB / 434.7 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2699, allocations: 4.062 kB / 434.7 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000433/0.2703, allocations: 118.4 kB / 434.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.2705, allocations: 31.97 kB / 434.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004173/0.2746, allocations: 4.585 MB / 439.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.2749, allocations: 23.91 kB / 439.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.2749, allocations: 8 kB / 439.4 MB, free: 13.44 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.0002037/0.2751, allocations: 145.8 kB / 439.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.517e-05/0.2752, allocations: 39.92 kB / 439.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.153e-05/0.2752, allocations: 38.41 kB / 439.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.2752, allocations: 4.031 kB / 439.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2752, allocations: 3.984 kB / 439.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2752, allocations: 0 / 439.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003565/0.2756, allocations: 261 kB / 439.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.2756, allocations: 0 / 439.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.2757, allocations: 19.98 kB / 439.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003315/0.276, allocations: 114.6 kB / 440 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.2761, allocations: 12 kB / 440.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003954/0.28, allocations: 4.572 MB / 444.6 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.28, allocations: 0 / 444.6 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006564/0.2807, allocations: 389.7 kB / 445 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.2808, allocations: 51.72 kB / 445.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/0.2809, allocations: 11.98 kB / 445.1 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.2811, allocations: 23.92 kB / 445.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.187e-05/0.2812, allocations: 28.02 kB / 445.1 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.2812, allocations: 4 kB / 445.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002269/0.2814, allocations: 207.1 kB / 445.3 MB, free: 7.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2814, allocations: 288 / 445.3 MB, free: 7.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007157/0.2821, allocations: 119.8 kB / 445.4 MB, free: 7.055 MB / 350.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.0001322/0.2822, allocations: 107.1 kB / 445.6 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009377/0.2832, allocations: 0.5728 MB / 446.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2832, allocations: 0 / 446.1 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005715/0.2838, allocations: 475.7 kB / 446.6 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.2841, allocations: 48.88 kB / 446.6 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.2853, allocations: 0.6232 MB / 447.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.2855, allocations: 194.6 kB / 447.5 MB, free: 4.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.888e-05/0.2856, allocations: 22.33 kB / 447.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.343e-05/0.2857, allocations: 23.42 kB / 447.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2857, allocations: 0 / 447.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of Templates: time 0.01062/0.2963, allocations: 5.341 MB / 452.8 MB, free: 15.6 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.744771011173725]