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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001037, allocations: 169.2 kB / 13.64 MB, free: 1.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 221.3 MB / 235.5 MB, free: 2.922 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008938/0.0008937, allocations: 98.22 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.228e-05/2.23e-05, allocations: 4 kB / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08407/0.0841, allocations: 50.42 MB / 394.2 MB, free: 1.852 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2703/0.3545, allocations: 78.67 MB / 472.9 MB, free: 8.875 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.3547, allocations: 79.78 kB / 473 MB, free: 8.801 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01636/0.3711, allocations: 6.551 MB / 479.5 MB, free: 2.203 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3711, allocations: 0 / 479.5 MB, free: 2.203 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.3712, allocations: 12 kB / 479.6 MB, free: 2.191 MB / 346.7 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.0007938/0.372, allocations: 0.6081 MB / 480.2 MB, free: 1.539 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.372, allocations: 8.031 kB / 480.2 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.198e-05/0.3721, allocations: 51.42 kB / 480.2 MB, free: 1.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.3724, allocations: 294.6 kB / 480.5 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.3725, allocations: 24.72 kB / 480.5 MB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.443e-05/0.3725, allocations: 32 kB / 480.6 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.373, allocations: 340.6 kB / 480.9 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3731, allocations: 4 kB / 480.9 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.3731, allocations: 12 kB / 480.9 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.3731, allocations: 8 kB / 480.9 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.3735, allocations: 235 kB / 481.1 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.3754, allocations: 1.443 MB / 482.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003216/0.3757, allocations: 194.5 kB / 482.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.3759, allocations: 93.67 kB / 482.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.3759, allocations: 4 kB / 482.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.3759, allocations: 38.55 kB / 482.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.3759, allocations: 7.938 kB / 482.9 MB, free: 14.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004748/0.3764, allocations: 267.1 kB / 483.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.3764, allocations: 55.41 kB / 483.2 MB, free: 14.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002681/0.3767, allocations: 270.6 kB / 483.5 MB, free: 13.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.3768, allocations: 33.7 kB / 483.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.3769, allocations: 200.2 kB / 483.7 MB, free: 13.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.492e-05/0.3769, allocations: 82.83 kB / 483.8 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.223e-05/0.377, allocations: 4 kB / 483.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.3771, allocations: 346.8 kB / 484.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.3772, allocations: 67.98 kB / 484.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.3773, allocations: 100.3 kB / 484.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.3775, allocations: 71.91 kB / 484.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3775, allocations: 4 kB / 484.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006043/0.3781, allocations: 335.4 kB / 484.7 MB, free: 12.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.3781, allocations: 4 kB / 484.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3781, allocations: 0 / 484.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000376/0.3785, allocations: 122.6 kB / 484.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.3787, allocations: 35.91 kB / 484.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003207/0.3819, allocations: 4.438 MB / 489.3 MB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.3821, allocations: 35.7 kB / 489.3 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.7e-05/0.3822, allocations: 8 kB / 489.4 MB, free: 7.66 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 8.072e-05/0.3823, allocations: 120.9 kB / 489.5 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.482e-05/0.3823, allocations: 31.62 kB / 489.5 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.16e-05/0.3824, allocations: 38.95 kB / 489.5 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.3824, allocations: 0 / 489.5 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3824, allocations: 8.062 kB / 489.6 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3824, allocations: 0 / 489.6 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003735/0.3828, allocations: 373.3 kB / 489.9 MB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3828, allocations: 3.938 kB / 489.9 MB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.3829, allocations: 23.98 kB / 489.9 MB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003/0.3833, allocations: 118.6 kB / 490.1 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.3833, allocations: 4 kB / 490.1 MB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003099/0.3864, allocations: 4.438 MB / 494.5 MB, free: 2.047 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3864, allocations: 0 / 494.5 MB, free: 2.047 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004397/0.3868, allocations: 369.7 kB / 494.9 MB, free: 1.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.387, allocations: 132.6 kB / 495 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.387, allocations: 4 kB / 495 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.3873, allocations: 23.98 kB / 495 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.522e-05/0.3873, allocations: 31.89 kB / 495.1 MB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.3874, allocations: 8 kB / 495.1 MB, free: 1.445 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001907/0.3876, allocations: 218.2 kB / 495.3 MB, free: 1.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3876, allocations: 0 / 495.3 MB, free: 1.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005468/0.3881, allocations: 108 kB / 495.4 MB, free: 1.125 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001204/0.3882, allocations: 103.2 kB / 495.5 MB, free: 1.016 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000633/0.3889, allocations: 0.5423 MB / 496 MB, free: 444 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3889, allocations: 4 kB / 496 MB, free: 440 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004022/0.3893, allocations: 459.2 kB / 496.5 MB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/0.3896, allocations: 45.19 kB / 496.5 MB, free: 15.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007115/0.3903, allocations: 417.3 kB / 496.9 MB, free: 15.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.3906, allocations: 0.8145 MB / 497.7 MB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000105/0.3908, allocations: 23.02 kB / 497.8 MB, free: 14.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.635e-05/0.3908, allocations: 19.44 kB / 497.8 MB, free: 14.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3908, allocations: 0 / 497.8 MB, free: 14.59 MB / 378.7 MB Notification: Performance of Templates: time 0.008264/0.3991, allocations: 4.729 MB / 0.4907 GB, free: 9.914 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches