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.001323/0.001323, allocations: 103.9 kB / 18.39 MB, free: 4.641 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.001357/0.001357, allocations: 190.5 kB / 19.33 MB, free: 3.715 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.333/1.333, 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.001367/0.001367, allocations: 51.94 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0862/0.08758, allocations: 46.6 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004892/0.09252, allocations: 3.443 MB / 379.3 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.09423, allocations: 0.803 MB / 380.1 MB, free: 304 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004268/0.09473, allocations: 4 kB / 380.1 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.09508, allocations: 67.3 kB / 380.1 MB, free: 232 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00042/0.09551, allocations: 134.8 kB / 380.3 MB, free: 96 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1821/0.2776, allocations: 103.4 kB / 380.4 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.2786, allocations: 0.4994 MB / 380.9 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/0.279, allocations: 138.7 kB / 381 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004774/0.2795, allocations: 191.5 kB / 381.2 MB, free: 9.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004152/0.2799, allocations: 209.9 kB / 381.4 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.2801, allocations: 39.53 kB / 381.4 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.2802, allocations: 39.19 kB / 381.5 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.101e-05/0.2803, allocations: 92.89 kB / 381.6 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003028/0.2806, allocations: 220.3 kB / 381.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006169/0.2813, allocations: 496.8 kB / 382.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2813, allocations: 0.9375 kB / 382.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2813, allocations: 0 / 382.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.2813, allocations: 3.531 kB / 382.3 MB, free: 9.535 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.001191/0.2825, allocations: 0.7176 MB / 383 MB, free: 9.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.2826, allocations: 12.8 kB / 383 MB, free: 9.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.2827, allocations: 48.53 kB / 383 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004528/0.2831, allocations: 315.9 kB / 383.3 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.209e-05/0.2832, allocations: 22 kB / 383.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-05/0.2832, allocations: 33.91 kB / 383.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006729/0.2839, allocations: 355.8 kB / 383.8 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.284, allocations: 9.75 kB / 383.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.558e-05/0.284, allocations: 15.8 kB / 383.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.284, allocations: 7.781 kB / 383.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005603/0.2846, allocations: 271.9 kB / 384 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.2864, allocations: 1.401 MB / 385.5 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004177/0.2869, allocations: 227.9 kB / 385.7 MB, free: 7.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.2871, allocations: 110.6 kB / 385.8 MB, free: 7.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.2871, allocations: 1.875 kB / 385.8 MB, free: 7.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.2871, allocations: 36.44 kB / 385.8 MB, free: 7.816 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.724e-06/0.2871, allocations: 0 / 385.8 MB, free: 7.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001494/0.2886, allocations: 0.6998 MB / 386.5 MB, free: 7.352 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.2887, allocations: 55.06 kB / 386.6 MB, free: 7.289 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003818/0.2891, allocations: 308.8 kB / 386.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.2891, allocations: 31.11 kB / 386.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.2893, allocations: 214.8 kB / 387.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.877e-05/0.2893, allocations: 70.78 kB / 387.2 MB, free: 6.855 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.696e-05/0.2894, allocations: 50.88 kB / 387.2 MB, free: 6.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.35e-05/0.2895, allocations: 339 kB / 387.6 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.2897, allocations: 83.25 kB / 387.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.2899, allocations: 124.1 kB / 387.8 MB, free: 6.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003688/0.2903, allocations: 201 kB / 388 MB, free: 6.293 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2903, allocations: 0 / 388 MB, free: 6.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006831/0.291, allocations: 354.8 kB / 388.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.291, allocations: 6.375 kB / 388.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.291, allocations: 1.828 kB / 388.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004162/0.2915, allocations: 119.3 kB / 388.4 MB, free: 6.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.2916, allocations: 30.89 kB / 388.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002974/0.2946, allocations: 4.969 MB / 393.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/0.2949, allocations: 27.81 kB / 393.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.2949, allocations: 7.516 kB / 393.5 MB, free: 1.234 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.0001963/0.2952, allocations: 146.5 kB / 393.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.2952, allocations: 44.53 kB / 393.7 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.759e-05/0.2953, allocations: 35.73 kB / 393.7 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.2953, allocations: 7.609 kB / 393.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2953, allocations: 0 / 393.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.2953, allocations: 1.547 kB / 393.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004262/0.2958, allocations: 373.1 kB / 394.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.2958, allocations: 5.609 kB / 394.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.2959, allocations: 27.34 kB / 394.1 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003175/0.2962, allocations: 113.1 kB / 394.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.2962, allocations: 12.55 kB / 394.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003897/0.3002, allocations: 4.964 MB / 399.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3002, allocations: 0.5156 kB / 399.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007119/0.3009, allocations: 403.1 kB / 399.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.3011, allocations: 129.1 kB / 399.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/0.3011, allocations: 2.031 kB / 399.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.3014, allocations: 22.12 kB / 399.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.3015, allocations: 29.62 kB / 399.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.3015, allocations: 10.97 kB / 399.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000275/0.3018, allocations: 224.9 kB / 400 MB, free: 11.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3018, allocations: 0 / 400 MB, free: 11.36 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007334/0.3026, allocations: 111 kB / 400.1 MB, free: 11.34 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.0001529/0.3027, allocations: 102.6 kB / 400.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001068/0.3038, allocations: 0.5793 MB / 400.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3038, allocations: 0 / 400.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005804/0.3044, allocations: 476.1 kB / 401.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004639/0.3049, allocations: 63.53 kB / 401.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.3062, allocations: 0.6571 MB / 402 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005666/0.3068, allocations: 0.793 MB / 402.7 MB, free: 9.289 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.752e-05/0.3068, allocations: 26.61 kB / 402.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3069, allocations: 0 / 402.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of Templates: time 0.0127/0.3196, allocations: 8.315 MB / 411.1 MB, free: 6.457 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