Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 109.4 kB / 18.4 MB, free: 4.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 185.2 kB / 19.33 MB, free: 3.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 55.92 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1088, allocations: 46.61 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005058/0.114, allocations: 3.443 MB / 379.3 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.1155, allocations: 0.7952 MB / 380.1 MB, free: 312 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.1158, allocations: 8 kB / 380.1 MB, free: 304 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002181/0.116, allocations: 67.3 kB / 380.1 MB, free: 236 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.1163, allocations: 130.8 kB / 380.3 MB, free: 104 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2485/0.3648, allocations: 108.1 kB / 380.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001148/0.366, allocations: 0.4999 MB / 380.9 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003548/0.3664, allocations: 135.6 kB / 381 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003987/0.3668, allocations: 192 kB / 381.2 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000294/0.3671, allocations: 211.7 kB / 381.4 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.087e-05/0.3672, allocations: 39.88 kB / 381.4 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.786e-05/0.3673, allocations: 42.78 kB / 381.5 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.71e-05/0.3674, allocations: 89.72 kB / 381.6 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002327/0.3676, allocations: 222.7 kB / 381.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007312/0.3684, allocations: 495 kB / 382.3 MB, free: 9.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3684, allocations: 1.375 kB / 382.3 MB, free: 9.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3684, allocations: 0 / 382.3 MB, free: 9.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.3684, allocations: 0 / 382.3 MB, free: 9.504 MB / 318.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.001345/0.3698, allocations: 0.7202 MB / 383 MB, free: 9.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.3698, allocations: 17.59 kB / 383 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.37, allocations: 47.38 kB / 383 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000568/0.3705, allocations: 313.7 kB / 383.3 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.196e-05/0.3706, allocations: 22.45 kB / 383.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.436e-05/0.3706, allocations: 32.47 kB / 383.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007724/0.3714, allocations: 360.9 kB / 383.8 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.3715, allocations: 3.938 kB / 383.8 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.561e-05/0.3715, allocations: 13.31 kB / 383.8 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.3715, allocations: 8.547 kB / 383.8 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005928/0.3721, allocations: 267.9 kB / 384 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002184/0.3743, allocations: 1.41 MB / 385.5 MB, free: 7.883 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004439/0.3748, allocations: 216.9 kB / 385.7 MB, free: 7.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.375, allocations: 109.2 kB / 385.8 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.3751, allocations: 6.875 kB / 385.8 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.3751, allocations: 36.44 kB / 385.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.896e-06/0.3751, allocations: 0.8438 kB / 385.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001566/0.3767, allocations: 0.7008 MB / 386.5 MB, free: 7.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.3767, allocations: 54.12 kB / 386.6 MB, free: 7.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003575/0.3771, allocations: 312.6 kB / 386.9 MB, free: 7.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.3771, allocations: 31.05 kB / 386.9 MB, free: 7.055 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.3773, allocations: 209.5 kB / 387.1 MB, free: 6.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.071e-05/0.3773, allocations: 72.34 kB / 387.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.411e-05/0.3774, allocations: 50.8 kB / 387.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.41e-05/0.3775, allocations: 339.1 kB / 387.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.3777, allocations: 85.3 kB / 387.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.378, allocations: 116 kB / 387.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003954/0.3784, allocations: 209.2 kB / 388 MB, free: 6.262 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3784, allocations: 1.094 kB / 388 MB, free: 6.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007515/0.3791, allocations: 353.3 kB / 388.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3792, allocations: 4.875 kB / 388.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.3792, allocations: 2.953 kB / 388.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004469/0.3796, allocations: 120.4 kB / 388.4 MB, free: 6.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.3798, allocations: 31.19 kB / 388.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003441/0.3833, allocations: 4.975 MB / 393.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.3837, allocations: 32.22 kB / 393.5 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.471e-05/0.3837, allocations: 6.781 kB / 393.5 MB, free: 1.199 MB / 318.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.000255/0.3839, allocations: 145.4 kB / 393.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.685e-05/0.384, allocations: 39.62 kB / 393.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.137e-05/0.3841, allocations: 39.3 kB / 393.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.3841, allocations: 4.234 kB / 393.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.3841, allocations: 0 / 393.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.3842, allocations: 4.781 kB / 393.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005493/0.3847, allocations: 377.5 kB / 394.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.3847, allocations: 5.094 kB / 394.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.3849, allocations: 20.66 kB / 394.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003766/0.3852, allocations: 114.4 kB / 394.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.3853, allocations: 5.875 kB / 394.2 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005285/0.3906, allocations: 4.96 MB / 399.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.3906, allocations: 0 / 399.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000928/0.3916, allocations: 409.3 kB / 399.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002289/0.3918, allocations: 129.8 kB / 399.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.3919, allocations: 1.766 kB / 399.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.3921, allocations: 24.78 kB / 399.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003505/0.3925, allocations: 30.97 kB / 399.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.3925, allocations: 4.781 kB / 399.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003711/0.3929, allocations: 222.5 kB / 400 MB, free: 11.35 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3929, allocations: 0 / 400 MB, free: 11.35 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001045/0.394, allocations: 111.7 kB / 400.1 MB, free: 11.33 MB / 334.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.0002115/0.3942, allocations: 106.6 kB / 400.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.3956, allocations: 0.5745 MB / 400.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.3956, allocations: 1.531 kB / 400.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009509/0.3966, allocations: 481.7 kB / 401.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005825/0.3972, allocations: 63.58 kB / 401.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002079/0.3993, allocations: 0.6533 MB / 402 MB, free: 9.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007915/0.4001, allocations: 0.7927 MB / 402.7 MB, free: 9.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.4002, allocations: 29.98 kB / 402.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of SimCode: time 1.363e-06/0.4002, allocations: 0 / 402.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of Templates: time 0.02026/0.4205, allocations: 8.361 MB / 411.1 MB, free: 6.402 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches