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.001895/0.001895, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001631/0.001631, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.673/1.673, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.001741/0.001741, allocations: 55.92 kB / 373.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1601, allocations: 53.33 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.006207/0.1663, allocations: 3.529 MB / 430.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2969/0.4633, allocations: 0.8433 MB / 431.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007337/0.464, allocations: 9.125 kB / 431.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000335/0.4643, allocations: 67.41 kB / 431.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000504/0.4648, allocations: 135.6 kB / 431.4 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006888/0.4655, allocations: 132.1 kB / 431.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008385/0.4664, allocations: 0.5124 MB / 432 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002874/0.4667, allocations: 99.25 kB / 432.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004256/0.4671, allocations: 193.9 kB / 432.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003249/0.4674, allocations: 214.4 kB / 432.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.983e-05/0.4675, allocations: 42.47 kB / 432.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001453/0.4677, allocations: 45 kB / 432.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.346e-05/0.4677, allocations: 88.66 kB / 432.7 MB, free: 8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000223/0.468, allocations: 228.8 kB / 432.9 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007018/0.4687, allocations: 0.49 MB / 433.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.4687, allocations: 0.75 kB / 433.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.4687, allocations: 1.219 kB / 433.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.4687, allocations: 0.5312 kB / 433.4 MB, free: 7.848 MB / 350.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.4701, allocations: 0.7383 MB / 434.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.4701, allocations: 10.97 kB / 434.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005319/0.4707, allocations: 81.95 kB / 434.2 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005083/0.4712, allocations: 323.9 kB / 434.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.003e-05/0.4712, allocations: 24.38 kB / 434.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.755e-05/0.4713, allocations: 34.48 kB / 434.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007971/0.4721, allocations: 361.2 kB / 435 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.4721, allocations: 3.938 kB / 435 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.4721, allocations: 11.56 kB / 435 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.4722, allocations: 7.5 kB / 435 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000659/0.4728, allocations: 268.2 kB / 435.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002352/0.4752, allocations: 1.416 MB / 436.7 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005354/0.4757, allocations: 201.6 kB / 436.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/0.476, allocations: 97.69 kB / 437 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.476, allocations: 2.25 kB / 437 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.559e-05/0.476, allocations: 41.06 kB / 437 MB, free: 6.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.903e-06/0.476, allocations: 0 / 437 MB, free: 6.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001705/0.4777, allocations: 0.7021 MB / 437.7 MB, free: 5.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.4778, allocations: 58.66 kB / 437.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004459/0.4782, allocations: 310.2 kB / 438.1 MB, free: 5.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.4783, allocations: 31.14 kB / 438.1 MB, free: 5.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.4784, allocations: 213.8 kB / 438.3 MB, free: 5.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.661e-05/0.4785, allocations: 89.72 kB / 438.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.4786, allocations: 51.09 kB / 438.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.4787, allocations: 338.1 kB / 438.8 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002167/0.4789, allocations: 78.17 kB / 438.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002556/0.4792, allocations: 135.9 kB / 439 MB, free: 4.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000442/0.4796, allocations: 200.9 kB / 439.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.4796, allocations: 2.938 kB / 439.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008441/0.4804, allocations: 358.6 kB / 439.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.4805, allocations: 5.781 kB / 439.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.4805, allocations: 1.984 kB / 439.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005141/0.481, allocations: 114.5 kB / 439.7 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.4812, allocations: 35.86 kB / 439.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003919/0.4851, allocations: 4.966 MB / 444.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003287/0.4855, allocations: 27.25 kB / 444.7 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/0.4855, allocations: 8.641 kB / 444.7 MB, free: 15.49 MB / 366.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.0002885/0.4858, allocations: 148.3 kB / 444.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.963e-05/0.4859, allocations: 41.41 kB / 444.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.323e-05/0.486, allocations: 39 kB / 444.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.486, allocations: 3.25 kB / 444.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.486, allocations: 0.5625 kB / 444.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.486, allocations: 2.359 kB / 444.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007802/0.4868, allocations: 377.5 kB / 445.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.4868, allocations: 7.875 kB / 445.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.4869, allocations: 20.19 kB / 445.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004466/0.4874, allocations: 113.1 kB / 445.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/0.4874, allocations: 6.062 kB / 445.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006483/0.4939, allocations: 4.98 MB / 450.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.4939, allocations: 0.6562 kB / 450.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.4951, allocations: 401 kB / 450.8 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002828/0.4954, allocations: 126.5 kB / 450.9 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.374e-05/0.4954, allocations: 6.438 kB / 450.9 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003123/0.4958, allocations: 20.67 kB / 451 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.496, allocations: 23.25 kB / 451 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-05/0.496, allocations: 9.547 kB / 451 MB, free: 9.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004604/0.4965, allocations: 224 kB / 451.2 MB, free: 9.594 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4965, allocations: 4 kB / 451.2 MB, free: 9.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0011/0.4976, allocations: 119.4 kB / 451.3 MB, free: 9.562 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.000289/0.4978, allocations: 99.55 kB / 451.4 MB, free: 9.477 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001373/0.4992, allocations: 0.574 MB / 452 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4992, allocations: 0 / 452 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007468/0.5, allocations: 469.6 kB / 452.5 MB, free: 8.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005197/0.5005, allocations: 65.45 kB / 452.5 MB, free: 8.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.5023, allocations: 0.6432 MB / 453.2 MB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005662/0.5028, allocations: 0.7947 MB / 454 MB, free: 7.551 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.503, allocations: 26.89 kB / 454 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.814e-05/0.503, allocations: 23.83 kB / 454 MB, free: 7.531 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.503, allocations: 0 / 454 MB, free: 7.531 MB / 366.1 MB Notification: Performance of Templates: time 0.01611/0.5192, allocations: 5.515 MB / 459.5 MB, free: 6.668 MB / 366.1 MB " [Timeout remaining time 659] 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: 5.585694596171379]