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.001541/0.001541, allocations: 117.1 kB / 17.07 MB, free: 5.949 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.001694/0.001694, allocations: 194.9 kB / 18.01 MB, free: 5.035 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.319/1.319, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3016, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004684/0.3064, allocations: 3.483 MB / 403.7 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.3076, allocations: 0.7478 MB / 404.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.3077, allocations: 8 kB / 404.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001783/0.308, allocations: 63.3 kB / 404.6 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002117/0.3082, allocations: 138.8 kB / 404.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.3085, allocations: 107.8 kB / 404.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004536/0.3089, allocations: 0.5055 MB / 405.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.3092, allocations: 135.2 kB / 405.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.3094, allocations: 183.4 kB / 405.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.3096, allocations: 215 kB / 405.8 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.39e-05/0.3097, allocations: 36 kB / 405.9 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.525e-05/0.3097, allocations: 40 kB / 405.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.3098, allocations: 99.61 kB / 406 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.31, allocations: 218.9 kB / 406.2 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004484/0.3105, allocations: 496.9 kB / 406.7 MB, free: 2.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3105, allocations: 0 / 406.7 MB, free: 2.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3105, allocations: 0 / 406.7 MB, free: 2.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.3105, allocations: 0 / 406.7 MB, free: 2.359 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.001104/0.3116, allocations: 0.736 MB / 407.4 MB, free: 1.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.3117, allocations: 11.97 kB / 407.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.711e-05/0.3118, allocations: 70.72 kB / 407.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.446e-05/0.3118, allocations: 52.61 kB / 407.6 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004259/0.3123, allocations: 319.4 kB / 407.9 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.3123, allocations: 25.03 kB / 407.9 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.3124, allocations: 28.38 kB / 407.9 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006555/0.313, allocations: 366.8 kB / 408.3 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.3131, allocations: 0 / 408.3 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.033e-05/0.3131, allocations: 12 kB / 408.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.3131, allocations: 8 kB / 408.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005515/0.3137, allocations: 270.4 kB / 408.6 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.3156, allocations: 1.407 MB / 410 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004225/0.3161, allocations: 222.5 kB / 410.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/0.3163, allocations: 104.8 kB / 410.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.3163, allocations: 4 kB / 410.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.3163, allocations: 34.5 kB / 410.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.3164, allocations: 8 kB / 410.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001457/0.3178, allocations: 0.7059 MB / 411 MB, free: 13.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.3179, allocations: 59.41 kB / 411.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.3181, allocations: 308.5 kB / 411.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.3182, allocations: 29.7 kB / 411.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.3183, allocations: 212.5 kB / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.042e-05/0.3184, allocations: 71.34 kB / 411.7 MB, free: 13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.946e-05/0.3185, allocations: 53.69 kB / 411.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.3186, allocations: 334.8 kB / 412.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.3188, allocations: 83.95 kB / 412.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.319, allocations: 132.2 kB / 412.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.3194, allocations: 200.1 kB / 412.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3194, allocations: 0 / 412.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006643/0.32, allocations: 355.6 kB / 412.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.3201, allocations: 8 kB / 412.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3201, allocations: 8.062 kB / 412.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004025/0.3205, allocations: 118.4 kB / 413 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.3207, allocations: 35.86 kB / 413 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003574/0.3243, allocations: 4.971 MB / 418 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.3245, allocations: 24.19 kB / 418 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.3245, allocations: 8 kB / 418 MB, free: 6.207 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.0001608/0.3247, allocations: 157.8 kB / 418.2 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.3247, allocations: 39.7 kB / 418.2 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.571e-05/0.3248, allocations: 35.17 kB / 418.2 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.3248, allocations: 4 kB / 418.2 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.3248, allocations: 128 / 418.2 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3248, allocations: 3.984 kB / 418.2 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004141/0.3253, allocations: 377.2 kB / 418.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.3253, allocations: 4 kB / 418.6 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.3254, allocations: 23.98 kB / 418.6 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002958/0.3257, allocations: 110.5 kB / 418.7 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.3257, allocations: 7.984 kB / 418.8 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003277/0.329, allocations: 4.959 MB / 423.7 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.329, allocations: 256 / 423.7 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005841/0.3296, allocations: 409.7 kB / 424.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.3297, allocations: 128.8 kB / 424.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.056e-05/0.3298, allocations: 8 kB / 424.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.33, allocations: 23.97 kB / 424.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.647e-05/0.3301, allocations: 31.91 kB / 424.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.3301, allocations: 4.094 kB / 424.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.3303, allocations: 219.1 kB / 424.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3303, allocations: 0 / 424.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006168/0.331, allocations: 115.8 kB / 424.6 MB, free: 15.05 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.0008338/0.3318, allocations: 0.9477 MB / 425.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008702/0.3327, allocations: 0.5777 MB / 426.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3327, allocations: 0 / 426.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004705/0.3332, allocations: 483.9 kB / 426.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/0.3336, allocations: 65.61 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.003875/0.3375, allocations: 3.118 MB / 429.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.3378, allocations: 0.7991 MB / 430.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.3379, allocations: 18.98 kB / 430.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.3381, allocations: 111.4 kB / 430.7 MB, free: 8.68 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3381, allocations: 0 / 430.7 MB, free: 8.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03432/0.3724, allocations: 8.632 MB / 439.4 MB, free: 264 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.1, allocations: 8.625 kB / 439.4 MB, free: 256 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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