Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001562/0.001562, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001894/0.001894, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 64.48 kB / 307.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09512, allocations: 50.53 MB / 358.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004915/0.1001, allocations: 3.501 MB / 361.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.1017, allocations: 0.8415 MB / 362.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002764/0.102, allocations: 11.94 kB / 362.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002284/0.1023, allocations: 71.28 kB / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000296/0.1026, allocations: 138.7 kB / 362.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.103, allocations: 139.8 kB / 362.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005317/0.1035, allocations: 0.5017 MB / 363.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.1038, allocations: 139.2 kB / 363.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003043/0.1041, allocations: 195.3 kB / 363.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/0.1044, allocations: 215 kB / 363.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.573e-05/0.1044, allocations: 40 kB / 363.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.1046, allocations: 44 kB / 364 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.892e-05/0.1046, allocations: 83.69 kB / 364 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002034/0.1049, allocations: 226.8 kB / 364.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004801/0.1053, allocations: 498.2 kB / 364.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1054, allocations: 0 / 364.8 MB, free: 7.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1054, allocations: 4 kB / 364.8 MB, free: 7.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.1054, allocations: 0 / 364.8 MB, free: 7.449 MB / 302.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.001165/0.1066, allocations: 0.7245 MB / 365.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1066, allocations: 12.03 kB / 365.5 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003576/0.107, allocations: 68.44 kB / 365.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.1074, allocations: 327.2 kB / 365.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.1074, allocations: 25.03 kB / 365.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.346e-05/0.1075, allocations: 28.38 kB / 365.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006083/0.1081, allocations: 367 kB / 366.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1081, allocations: 0 / 366.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.39e-05/0.1081, allocations: 12 kB / 366.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.1082, allocations: 8 kB / 366.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005477/0.1087, allocations: 270.4 kB / 366.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.1106, allocations: 1.422 MB / 368 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004234/0.1111, allocations: 226.3 kB / 368.2 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.1113, allocations: 108.8 kB / 368.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.1113, allocations: 4 kB / 368.3 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.1114, allocations: 30.56 kB / 368.4 MB, free: 3.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.236e-06/0.1114, allocations: 0 / 368.4 MB, free: 3.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001552/0.1129, allocations: 0.7075 MB / 369.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.113, allocations: 55.41 kB / 369.1 MB, free: 2.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003345/0.1133, allocations: 308.6 kB / 369.4 MB, free: 2.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.1133, allocations: 33.7 kB / 369.5 MB, free: 2.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.1135, allocations: 216.1 kB / 369.7 MB, free: 2.211 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.846e-05/0.1136, allocations: 78.83 kB / 369.7 MB, free: 2.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-05/0.1136, allocations: 49.7 kB / 369.8 MB, free: 2.078 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1138, allocations: 338.8 kB / 370.1 MB, free: 1.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.114, allocations: 83.95 kB / 370.2 MB, free: 1.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.1142, allocations: 124.2 kB / 370.3 MB, free: 1.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003993/0.1146, allocations: 204.1 kB / 370.5 MB, free: 1.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1146, allocations: 0 / 370.5 MB, free: 1.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007154/0.1154, allocations: 359.4 kB / 370.9 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.1154, allocations: 8 kB / 370.9 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.1154, allocations: 0 / 370.9 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004198/0.1158, allocations: 122.6 kB / 371 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.116, allocations: 35.91 kB / 371 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1462/0.2622, allocations: 4.956 MB / 376 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002539/0.2625, allocations: 27.08 kB / 376 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.2625, allocations: 13.61 kB / 376 MB, free: 15.84 MB / 302.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.0001525/0.2627, allocations: 149.9 kB / 376.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.376e-05/0.2628, allocations: 37.11 kB / 376.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.595e-05/0.2628, allocations: 40.92 kB / 376.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2628, allocations: 2.812 kB / 376.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.2628, allocations: 0 / 376.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.2629, allocations: 6.297 kB / 376.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004004/0.2633, allocations: 377.5 kB / 376.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2633, allocations: 0.8125 kB / 376.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.2634, allocations: 20.86 kB / 376.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003321/0.2637, allocations: 114.5 kB / 376.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.2638, allocations: 11.44 kB / 376.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002701/0.2665, allocations: 4.965 MB / 381.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2665, allocations: 0 / 381.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005752/0.2671, allocations: 408.5 kB / 382.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.2672, allocations: 129.3 kB / 382.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.821e-05/0.2672, allocations: 4.562 kB / 382.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.2675, allocations: 24.03 kB / 382.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.946e-05/0.2676, allocations: 27.91 kB / 382.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.2676, allocations: 6.094 kB / 382.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002467/0.2678, allocations: 224.2 kB / 382.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2679, allocations: 0.5 kB / 382.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000701/0.2686, allocations: 114.2 kB / 382.7 MB, free: 10.33 MB / 302.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.0001117/0.2687, allocations: 111.7 kB / 382.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008133/0.2695, allocations: 0.5748 MB / 383.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.2695, allocations: 1.531 kB / 383.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004274/0.27, allocations: 486.8 kB / 383.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.2704, allocations: 67.97 kB / 383.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.2715, allocations: 0.6694 MB / 384.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.2718, allocations: 0.7988 MB / 385.4 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.464e-05/0.2719, allocations: 25.73 kB / 385.4 MB, free: 8.293 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2719, allocations: 0 / 385.4 MB, free: 8.293 MB / 302.1 MB Notification: Performance of Templates: time 0.01071/0.2826, allocations: 8.433 MB / 393.8 MB, free: 5.781 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches