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.001188/0.001188, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.89 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2609, allocations: 50.54 MB / 409.9 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004645/0.2656, allocations: 3.505 MB / 413.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.267, allocations: 0.8452 MB / 414.3 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001867/0.2672, allocations: 19.88 kB / 414.3 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.2675, allocations: 67.34 kB / 414.4 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002355/0.2677, allocations: 126.8 kB / 414.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.2681, allocations: 135.8 kB / 414.6 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005376/0.2686, allocations: 0.5055 MB / 415.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002618/0.2689, allocations: 140.5 kB / 415.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002887/0.2692, allocations: 199.2 kB / 415.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.2695, allocations: 203.1 kB / 415.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.469e-05/0.2696, allocations: 40 kB / 415.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.2697, allocations: 44 kB / 415.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.487e-05/0.2698, allocations: 95.62 kB / 415.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.27, allocations: 222.9 kB / 416.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005071/0.2705, allocations: 0.4943 MB / 416.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.2705, allocations: 0 / 416.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.2705, allocations: 0 / 416.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.2705, allocations: 7.938 kB / 416.6 MB, free: 11.06 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.001187/0.2717, allocations: 0.7246 MB / 417.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.2718, allocations: 8.031 kB / 417.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003602/0.2721, allocations: 76.33 kB / 417.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.2726, allocations: 327.2 kB / 417.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.2726, allocations: 29.03 kB / 417.7 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.2727, allocations: 28.38 kB / 417.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005954/0.2733, allocations: 355.1 kB / 418.1 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.2733, allocations: 4 kB / 418.1 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.174e-05/0.2733, allocations: 12 kB / 418.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.2733, allocations: 8 kB / 418.1 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005219/0.2739, allocations: 270.4 kB / 418.4 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.2758, allocations: 1.415 MB / 419.8 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004262/0.2763, allocations: 222.4 kB / 420 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.2765, allocations: 113.2 kB / 420.1 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.2765, allocations: 4 kB / 420.1 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.2765, allocations: 38.42 kB / 420.2 MB, free: 7.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.865e-06/0.2766, allocations: 0 / 420.2 MB, free: 7.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001549/0.2781, allocations: 0.7018 MB / 420.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.2782, allocations: 63.34 kB / 420.9 MB, free: 6.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/0.2785, allocations: 308.6 kB / 421.2 MB, free: 6.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.2785, allocations: 29.7 kB / 421.3 MB, free: 6.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.2787, allocations: 216.1 kB / 421.5 MB, free: 5.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.824e-05/0.2787, allocations: 74.91 kB / 421.5 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.249e-05/0.2788, allocations: 53.7 kB / 421.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.279, allocations: 334.8 kB / 421.9 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.2792, allocations: 79.95 kB / 422 MB, free: 5.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.2794, allocations: 128.2 kB / 422.1 MB, free: 5.137 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003764/0.2798, allocations: 196.1 kB / 422.3 MB, free: 4.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2798, allocations: 0 / 422.3 MB, free: 4.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000687/0.2805, allocations: 363.5 kB / 422.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.2805, allocations: 6.969 kB / 422.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2805, allocations: 3.938 kB / 422.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003959/0.2809, allocations: 110.5 kB / 422.8 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.2811, allocations: 35.97 kB / 422.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003744/0.2849, allocations: 4.971 MB / 427.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.2851, allocations: 27.77 kB / 427.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.2851, allocations: 12 kB / 427.8 MB, free: 14.97 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.0001793/0.2853, allocations: 149.8 kB / 428 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.653e-05/0.2854, allocations: 43.53 kB / 428 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.913e-05/0.2855, allocations: 39.17 kB / 428.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.2855, allocations: 4 kB / 428.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2855, allocations: 4.062 kB / 428.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2855, allocations: 0 / 428.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004222/0.2859, allocations: 381.2 kB / 428.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.286, allocations: 0 / 428.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.2861, allocations: 19.98 kB / 428.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003269/0.2864, allocations: 118.4 kB / 428.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.2864, allocations: 4 kB / 428.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003751/0.2902, allocations: 4.967 MB / 433.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2902, allocations: 0 / 433.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006059/0.2908, allocations: 404.7 kB / 433.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.291, allocations: 128.5 kB / 434.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.291, allocations: 4.062 kB / 434.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.2913, allocations: 28.2 kB / 434.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.111e-05/0.2914, allocations: 23.97 kB / 434.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.2914, allocations: 15.92 kB / 434.1 MB, free: 8.137 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002243/0.2916, allocations: 227 kB / 434.4 MB, free: 7.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2916, allocations: 0 / 434.4 MB, free: 7.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006759/0.2923, allocations: 111.8 kB / 434.5 MB, free: 7.805 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.0001507/0.2925, allocations: 111.2 kB / 434.6 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009244/0.2934, allocations: 0.5778 MB / 435.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2934, allocations: 4 kB / 435.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004963/0.2939, allocations: 483.8 kB / 435.6 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004095/0.2943, allocations: 53.48 kB / 435.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.2955, allocations: 0.658 MB / 436.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.2959, allocations: 0.7953 MB / 437.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.944e-05/0.2959, allocations: 23.42 kB / 437.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of SimCode: time 1.663e-06/0.2959, allocations: 0 / 437.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of Templates: time 0.0104/0.3063, allocations: 8.472 MB / 445.6 MB, free: 12.51 MB / 366.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