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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 110.7 kB / 17.06 MB, free: 5.828 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.001204/0.001205, allocations: 200 kB / 18.01 MB, free: 4.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 47.91 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2752, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004681/0.2799, allocations: 3.485 MB / 403.7 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.2814, allocations: 0.7478 MB / 404.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.2816, allocations: 8 kB / 404.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.2819, allocations: 67.28 kB / 404.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.2822, allocations: 130.8 kB / 404.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003416/0.2825, allocations: 111.8 kB / 404.8 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005856/0.2831, allocations: 0.5016 MB / 405.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002724/0.2834, allocations: 131.3 kB / 405.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.2837, allocations: 191.4 kB / 405.6 MB, free: 3.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002726/0.284, allocations: 215 kB / 405.8 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.831e-05/0.2841, allocations: 44 kB / 405.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.712e-05/0.2841, allocations: 40 kB / 405.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.822e-05/0.2842, allocations: 87.62 kB / 406 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002256/0.2845, allocations: 226.9 kB / 406.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005689/0.2851, allocations: 492.9 kB / 406.7 MB, free: 2.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.2851, allocations: 0 / 406.7 MB, free: 2.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2851, allocations: 0 / 406.7 MB, free: 2.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.2851, allocations: 0 / 406.7 MB, free: 2.348 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.001163/0.2863, allocations: 0.7359 MB / 407.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.2863, allocations: 15.89 kB / 407.4 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.966e-05/0.2864, allocations: 66.72 kB / 407.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.101e-05/0.2865, allocations: 52.61 kB / 407.6 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004126/0.2869, allocations: 323.5 kB / 407.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.2869, allocations: 21.03 kB / 407.9 MB, free: 1.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.327e-05/0.287, allocations: 36.36 kB / 407.9 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006355/0.2876, allocations: 358.8 kB / 408.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2877, allocations: 0 / 408.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.2877, allocations: 20 kB / 408.3 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.2877, allocations: 8 kB / 408.3 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005663/0.2883, allocations: 270.4 kB / 408.6 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.2903, allocations: 1.403 MB / 410 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000454/0.2908, allocations: 221.9 kB / 410.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.291, allocations: 108.8 kB / 410.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.2911, allocations: 3.984 kB / 410.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.487e-05/0.2911, allocations: 38.56 kB / 410.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.2911, allocations: 0 / 410.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001594/0.2927, allocations: 0.6984 MB / 411 MB, free: 13.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.2928, allocations: 55.41 kB / 411.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/0.2931, allocations: 308.5 kB / 411.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.2932, allocations: 29.7 kB / 411.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.2933, allocations: 216.4 kB / 411.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.956e-05/0.2934, allocations: 75.34 kB / 411.7 MB, free: 12.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.662e-05/0.2935, allocations: 45.7 kB / 411.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.2937, allocations: 350.8 kB / 412.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.2939, allocations: 71.97 kB / 412.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.2942, allocations: 132.2 kB / 412.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004065/0.2946, allocations: 196.1 kB / 412.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2946, allocations: 0 / 412.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000746/0.2953, allocations: 363.8 kB / 412.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2954, allocations: 4 kB / 412.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.2954, allocations: 0 / 412.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004254/0.2958, allocations: 118.4 kB / 413 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.296, allocations: 43.84 kB / 413 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004264/0.3003, allocations: 4.979 MB / 418 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.3005, allocations: 23.92 kB / 418 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.3005, allocations: 11.98 kB / 418 MB, free: 6.188 MB / 334.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.0001991/0.3007, allocations: 147.3 kB / 418.2 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.268e-05/0.3008, allocations: 35.77 kB / 418.2 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.147e-05/0.3009, allocations: 39.17 kB / 418.2 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3009, allocations: 7.938 kB / 418.2 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.3009, allocations: 4.062 kB / 418.2 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3009, allocations: 0 / 418.2 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004667/0.3014, allocations: 381.3 kB / 418.6 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3014, allocations: 0 / 418.6 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.3015, allocations: 23.97 kB / 418.6 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003536/0.3019, allocations: 110.5 kB / 418.7 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.3019, allocations: 64 / 418.7 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00418/0.3061, allocations: 4.971 MB / 423.7 MB, free: 0 / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3061, allocations: 0 / 423.7 MB, free: 0 / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006407/0.3068, allocations: 407.2 kB / 424.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.3069, allocations: 132.8 kB / 424.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.445e-05/0.307, allocations: 4 kB / 424.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.3072, allocations: 20.05 kB / 424.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.908e-05/0.3073, allocations: 31.89 kB / 424.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.3073, allocations: 8 kB / 424.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002426/0.3076, allocations: 215.1 kB / 424.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3076, allocations: 0 / 424.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006731/0.3083, allocations: 115.8 kB / 424.6 MB, free: 15.04 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.001035/0.3093, allocations: 0.9438 MB / 425.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001006/0.3103, allocations: 0.5821 MB / 426.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3103, allocations: 0 / 426.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005912/0.3109, allocations: 488 kB / 426.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.3114, allocations: 57.12 kB / 426.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.3159, allocations: 3.125 MB / 429.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004789/0.3164, allocations: 0.7952 MB / 430.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.3165, allocations: 27.02 kB / 430.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.3166, allocations: 107.4 kB / 430.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3167, allocations: 0 / 430.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05903/0.3757, allocations: 8.636 MB / 439.4 MB, free: 244 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.29, allocations: 7.688 kB / 439.4 MB, free: 240 kB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches