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.001567/0.001567, allocations: 112 kB / 20.43 MB, free: 1.449 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.001835/0.001835, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.499/1.499, allocations: 225.6 MB / 252.5 MB, free: 13.01 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.001502/0.001502, allocations: 43.92 kB / 370.9 MB, free: 9.348 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2807, allocations: 52.17 MB / 423.1 MB, free: 14.7 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004927/0.2857, allocations: 3.523 MB / 426.6 MB, free: 11.16 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001422/0.2871, allocations: 0.761 MB / 427.4 MB, free: 10.4 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.2873, allocations: 7.938 kB / 427.4 MB, free: 10.39 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000215/0.2875, allocations: 67.3 kB / 427.5 MB, free: 10.32 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002327/0.2877, allocations: 134.8 kB / 427.6 MB, free: 10.19 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.288, allocations: 111.8 kB / 427.7 MB, free: 10.08 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005544/0.2886, allocations: 0.5016 MB / 428.2 MB, free: 9.578 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.2888, allocations: 99.69 kB / 428.3 MB, free: 9.477 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000246/0.289, allocations: 195.3 kB / 428.5 MB, free: 9.285 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002603/0.2893, allocations: 211 kB / 428.7 MB, free: 9.078 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.661e-05/0.2893, allocations: 40 kB / 428.7 MB, free: 9.039 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 7.367e-05/0.2894, allocations: 40 kB / 428.8 MB, free: 9 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.132e-05/0.2895, allocations: 87.69 kB / 428.9 MB, free: 8.914 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002223/0.2897, allocations: 226.8 kB / 429.1 MB, free: 8.691 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005319/0.2903, allocations: 0.4899 MB / 429.6 MB, free: 8.203 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2903, allocations: 0 / 429.6 MB, free: 8.203 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.292e-06/0.2903, allocations: 4 kB / 429.6 MB, free: 8.199 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.556e-06/0.2903, allocations: 0 / 429.6 MB, free: 8.199 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.001201/0.2915, allocations: 0.6489 MB / 430.2 MB, free: 7.52 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2915, allocations: 8.031 kB / 430.2 MB, free: 7.512 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.663e-05/0.2916, allocations: 52.61 kB / 430.3 MB, free: 7.461 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004469/0.2921, allocations: 266.3 kB / 430.6 MB, free: 7.176 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.2921, allocations: 21.03 kB / 430.6 MB, free: 7.156 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.2921, allocations: 36.31 kB / 430.6 MB, free: 7.121 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006606/0.2928, allocations: 363 kB / 431 MB, free: 6.75 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.2928, allocations: 0 / 431 MB, free: 6.75 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.97e-05/0.2928, allocations: 19.98 kB / 431 MB, free: 6.73 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.2929, allocations: 8 kB / 431 MB, free: 6.723 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005747/0.2934, allocations: 266.4 kB / 431.3 MB, free: 6.465 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.2956, allocations: 1.357 MB / 432.6 MB, free: 5.016 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004473/0.296, allocations: 209.9 kB / 432.8 MB, free: 4.805 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.2962, allocations: 96.81 kB / 432.9 MB, free: 4.707 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.2963, allocations: 0 / 432.9 MB, free: 4.707 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.2963, allocations: 38.56 kB / 432.9 MB, free: 4.66 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.2963, allocations: 0 / 432.9 MB, free: 4.66 MB / 334.1 MB
Notification: Performance of matching and sorting (n=24): time 0.001548/0.2978, allocations: 483.3 kB / 433.4 MB, free: 4.176 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.2979, allocations: 55.41 kB / 433.5 MB, free: 4.109 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003357/0.2982, allocations: 308.5 kB / 433.8 MB, free: 3.793 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.2982, allocations: 29.7 kB / 433.8 MB, free: 3.758 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.2984, allocations: 216.5 kB / 434 MB, free: 3.543 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.718e-05/0.2985, allocations: 79.31 kB / 434.1 MB, free: 3.465 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.2e-05/0.2986, allocations: 45.7 kB / 434.1 MB, free: 3.414 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001524/0.2987, allocations: 338.8 kB / 434.5 MB, free: 3.074 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.2989, allocations: 83.95 kB / 434.5 MB, free: 2.992 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002304/0.2992, allocations: 124.2 kB / 434.7 MB, free: 2.855 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004114/0.2996, allocations: 204 kB / 434.9 MB, free: 2.641 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.2996, allocations: 4 kB / 434.9 MB, free: 2.637 MB / 334.1 MB
Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007353/0.3003, allocations: 351.7 kB / 435.2 MB, free: 2.277 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.3003, allocations: 10.5 kB / 435.2 MB, free: 2.27 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3003, allocations: 0 / 435.2 MB, free: 2.27 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0004433/0.3008, allocations: 118.6 kB / 435.3 MB, free: 2.145 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.301, allocations: 35.91 kB / 435.4 MB, free: 2.109 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004458/0.3054, allocations: 4.669 MB / 440 MB, free: 13.1 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/0.3057, allocations: 23.88 kB / 440.1 MB, free: 13.07 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.3057, allocations: 8 kB / 440.1 MB, free: 13.07 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.0001982/0.3059, allocations: 137.8 kB / 440.2 MB, free: 12.92 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.217e-05/0.306, allocations: 51.89 kB / 440.3 MB, free: 12.87 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.788e-05/0.306, allocations: 39.27 kB / 440.3 MB, free: 12.83 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.306, allocations: 0 / 440.3 MB, free: 12.83 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.306, allocations: 4 kB / 440.3 MB, free: 12.83 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3061, allocations: 3.984 kB / 440.3 MB, free: 12.82 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004647/0.3065, allocations: 344.4 kB / 440.6 MB, free: 12.45 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3065, allocations: 288 / 440.6 MB, free: 12.45 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.3066, allocations: 27.91 kB / 440.7 MB, free: 12.42 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0003556/0.307, allocations: 118.5 kB / 440.8 MB, free: 12.29 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.307, allocations: 8.031 kB / 440.8 MB, free: 12.29 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004027/0.311, allocations: 4.661 MB / 445.5 MB, free: 7.285 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.311, allocations: 4 kB / 445.5 MB, free: 7.281 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006638/0.3117, allocations: 401.7 kB / 445.9 MB, free: 6.863 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.3118, allocations: 47.72 kB / 445.9 MB, free: 6.816 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/0.3119, allocations: 4 kB / 445.9 MB, free: 6.812 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.3121, allocations: 19.98 kB / 445.9 MB, free: 6.793 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.284e-05/0.3122, allocations: 31.88 kB / 446 MB, free: 6.762 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.3122, allocations: 15.94 kB / 446 MB, free: 6.746 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002477/0.3124, allocations: 219.1 kB / 446.2 MB, free: 6.535 MB / 350.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3124, allocations: 0 / 446.2 MB, free: 6.535 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.000668/0.3131, allocations: 115.8 kB / 446.3 MB, free: 6.422 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.000129/0.3132, allocations: 99.25 kB / 446.4 MB, free: 6.316 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0009623/0.3142, allocations: 0.5727 MB / 447 MB, free: 5.707 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3142, allocations: 0 / 447 MB, free: 5.707 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005428/0.3147, allocations: 471.8 kB / 447.4 MB, free: 5.207 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.3152, allocations: 61.73 kB / 447.5 MB, free: 5.148 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.3164, allocations: 0.631 MB / 448.1 MB, free: 4.488 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.3168, allocations: 0.7991 MB / 448.9 MB, free: 3.656 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001049/0.3169, allocations: 26.97 kB / 448.9 MB, free: 3.629 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.434e-05/0.317, allocations: 19.44 kB / 449 MB, free: 3.609 MB / 350.1 MB
Notification: Performance of SimCode: time 3.2e-07/0.317, allocations: 0 / 449 MB, free: 3.609 MB / 350.1 MB
Notification: Performance of Templates: time 0.0112/0.3282, allocations: 5.675 MB / 454.6 MB, free: 13.98 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.775480260141194]