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.001468/0.001468, allocations: 177.5 kB / 17.4 MB, free: 4.301 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.486/1.486, allocations: 223.3 MB / 241.4 MB, free: 9.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007943/0.0007944, allocations: 92.42 kB / 292.6 MB, free: 10.53 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004971/0.0004974, allocations: 8 kB / 352.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3556, allocations: 50.42 MB / 402.7 MB, free: 32.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1118/0.4675, allocations: 78.78 MB / 481.5 MB, free: 1.512 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.4678, allocations: 73.03 kB / 481.6 MB, free: 1.441 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01882/0.4866, allocations: 6.546 MB / 488.1 MB, free: 10.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.781e-06/0.4867, allocations: 0 / 488.1 MB, free: 10.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.78e-05/0.4868, allocations: 11.94 kB / 488.2 MB, free: 10.83 MB / 362.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.001338/0.4881, allocations: 0.6545 MB / 488.8 MB, free: 10.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.4882, allocations: 15.97 kB / 488.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.4883, allocations: 48.38 kB / 488.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/0.4889, allocations: 311.2 kB / 489.2 MB, free: 9.719 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/0.4889, allocations: 25.03 kB / 489.2 MB, free: 9.695 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.496e-05/0.489, allocations: 32.38 kB / 489.2 MB, free: 9.664 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006971/0.4897, allocations: 355.3 kB / 489.6 MB, free: 9.297 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.4897, allocations: 4.188 kB / 489.6 MB, free: 9.293 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.59e-05/0.4897, allocations: 11.94 kB / 489.6 MB, free: 9.281 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.666e-05/0.4898, allocations: 16 kB / 489.6 MB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006179/0.4904, allocations: 278.4 kB / 489.9 MB, free: 8.996 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.4929, allocations: 1.434 MB / 491.3 MB, free: 7.461 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004553/0.4934, allocations: 234 kB / 491.5 MB, free: 7.227 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.4936, allocations: 116.8 kB / 491.7 MB, free: 7.109 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.4936, allocations: 4 kB / 491.7 MB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.4937, allocations: 38.56 kB / 491.7 MB, free: 7.059 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 3.196e-06/0.4937, allocations: 0 / 491.7 MB, free: 7.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001649/0.4954, allocations: 0.7218 MB / 492.4 MB, free: 6.266 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/0.4954, allocations: 55.41 kB / 492.5 MB, free: 6.199 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003809/0.4958, allocations: 304.5 kB / 492.8 MB, free: 5.895 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.4959, allocations: 33.7 kB / 492.8 MB, free: 5.855 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.496, allocations: 204.2 kB / 493 MB, free: 5.652 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.226e-05/0.4961, allocations: 74.91 kB / 493.1 MB, free: 5.578 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.218e-05/0.4961, allocations: 8 kB / 493.1 MB, free: 5.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4963, allocations: 338.8 kB / 493.4 MB, free: 5.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.4965, allocations: 83.95 kB / 493.5 MB, free: 5.148 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.4967, allocations: 124.2 kB / 493.6 MB, free: 5.012 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004304/0.4972, allocations: 220.8 kB / 493.8 MB, free: 4.781 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.4972, allocations: 3.938 kB / 493.8 MB, free: 4.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008317/0.498, allocations: 371.5 kB / 494.2 MB, free: 4.398 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.4981, allocations: 8 kB / 494.2 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.4981, allocations: 0 / 494.2 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004683/0.4986, allocations: 118.5 kB / 494.3 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.4988, allocations: 36.23 kB / 494.4 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003963/0.5027, allocations: 4.446 MB / 498.8 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.5031, allocations: 32.05 kB / 498.8 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.5031, allocations: 15.94 kB / 498.9 MB, free: 15.33 MB / 378.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 () * 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 (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 0.0002404/0.5033, allocations: 149.7 kB / 499 MB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.328e-05/0.5034, allocations: 35.62 kB / 499 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.564e-05/0.5035, allocations: 39.17 kB / 499.1 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.5035, allocations: 4 kB / 499.1 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.5035, allocations: 0 / 499.1 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.5035, allocations: 4 kB / 499.1 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004659/0.504, allocations: 381.2 kB / 499.5 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.504, allocations: 0 / 499.5 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.5041, allocations: 20.08 kB / 499.5 MB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003571/0.5045, allocations: 122.4 kB / 499.6 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.5045, allocations: 7.984 kB / 499.6 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003615/0.5082, allocations: 4.441 MB / 0.4922 GB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5082, allocations: 0 / 0.4922 GB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006654/0.5089, allocations: 420.4 kB / 0.4926 GB, free: 9.242 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001801/0.5091, allocations: 132.6 kB / 0.4928 GB, free: 9.094 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.315e-05/0.5091, allocations: 12 kB / 0.4928 GB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.5094, allocations: 23.97 kB / 0.4928 GB, free: 9.059 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.311e-05/0.5095, allocations: 19.97 kB / 0.4928 GB, free: 9.039 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.5095, allocations: 12 kB / 0.4928 GB, free: 9.027 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002678/0.5098, allocations: 215.1 kB / 0.493 GB, free: 8.816 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5098, allocations: 4 kB / 0.493 GB, free: 8.812 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008009/0.5106, allocations: 107.8 kB / 0.4931 GB, free: 8.707 MB / 378.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 () * 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 (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.0001626/0.5108, allocations: 111.2 kB / 0.4932 GB, free: 8.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009763/0.5118, allocations: 0.5819 MB / 0.4938 GB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5118, allocations: 0 / 0.4938 GB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00057/0.5124, allocations: 487.9 kB / 0.4943 GB, free: 7.453 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.5129, allocations: 65.5 kB / 0.4943 GB, free: 7.391 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.5143, allocations: 0.7556 MB / 0.4951 GB, free: 6.609 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.5147, allocations: 0.795 MB / 0.4959 GB, free: 5.785 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000164/0.5149, allocations: 26.97 kB / 0.4959 GB, free: 5.762 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.383e-05/0.5149, allocations: 23.42 kB / 0.4959 GB, free: 5.738 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5149, allocations: 0 / 0.4959 GB, free: 5.738 MB / 378.7 MB Notification: Performance of Templates: time 0.01129/0.5262, allocations: 4.778 MB / 0.5006 GB, free: 1.016 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/jenkins1/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