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.001594/0.001594, allocations: 109.8 kB / 17.06 MB, free: 5.973 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.001739/0.001739, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 51.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3047, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004631/0.3093, allocations: 3.485 MB / 403.7 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.3107, allocations: 0.7456 MB / 404.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.3109, allocations: 8 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.3111, allocations: 71.3 kB / 404.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002372/0.3114, allocations: 130.8 kB / 404.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003034/0.3117, allocations: 111.9 kB / 404.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005002/0.3122, allocations: 0.5016 MB / 405.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002348/0.3124, allocations: 135.2 kB / 405.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.3127, allocations: 187.3 kB / 405.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.3129, allocations: 211.1 kB / 405.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.536e-05/0.313, allocations: 40 kB / 405.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.803e-05/0.3131, allocations: 36 kB / 405.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.35e-05/0.3131, allocations: 87.69 kB / 406 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001834/0.3133, allocations: 230.8 kB / 406.2 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004219/0.3138, allocations: 490.2 kB / 406.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3138, allocations: 0 / 406.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3138, allocations: 0 / 406.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.3138, allocations: 0 / 406.7 MB, free: 2.344 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.001089/0.3149, allocations: 0.7246 MB / 407.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.3149, allocations: 12.03 kB / 407.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.867e-05/0.315, allocations: 70.66 kB / 407.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.988e-05/0.3151, allocations: 48.41 kB / 407.5 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004318/0.3155, allocations: 319.2 kB / 407.8 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.3156, allocations: 25.03 kB / 407.9 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.611e-05/0.3156, allocations: 32.38 kB / 407.9 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006113/0.3163, allocations: 358.8 kB / 408.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.3163, allocations: 0 / 408.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/0.3163, allocations: 16 kB / 408.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.3163, allocations: 8 kB / 408.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005347/0.3169, allocations: 274.4 kB / 408.5 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.3188, allocations: 1.403 MB / 409.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004007/0.3192, allocations: 218.5 kB / 410.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002293/0.3195, allocations: 100.8 kB / 410.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.3195, allocations: 8 kB / 410.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.3195, allocations: 42.5 kB / 410.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.3195, allocations: 0 / 410.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001531/0.3211, allocations: 0.6982 MB / 411 MB, free: 13.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.962e-05/0.3211, allocations: 59.41 kB / 411.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003287/0.3215, allocations: 304.6 kB / 411.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.3215, allocations: 25.7 kB / 411.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.3217, allocations: 212.1 kB / 411.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.529e-05/0.3217, allocations: 75 kB / 411.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.822e-05/0.3218, allocations: 49.61 kB / 411.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.322, allocations: 334.8 kB / 412 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.3222, allocations: 87.95 kB / 412.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.3224, allocations: 128.2 kB / 412.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003946/0.3228, allocations: 204.1 kB / 412.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3228, allocations: 0 / 412.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007456/0.3236, allocations: 355.5 kB / 412.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3236, allocations: 8.062 kB / 412.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3236, allocations: 0 / 412.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004837/0.3241, allocations: 126.4 kB / 412.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.3243, allocations: 35.91 kB / 413 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003922/0.3283, allocations: 4.963 MB / 417.9 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.3285, allocations: 27.77 kB / 418 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.3285, allocations: 12.06 kB / 418 MB, free: 6.219 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.0001969/0.3287, allocations: 157.6 kB / 418.1 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-05/0.3288, allocations: 31.62 kB / 418.1 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.349e-05/0.3289, allocations: 39.17 kB / 418.2 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3289, allocations: 4 kB / 418.2 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3289, allocations: 0 / 418.2 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3289, allocations: 0 / 418.2 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004686/0.3294, allocations: 385.3 kB / 418.6 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3294, allocations: 4 kB / 418.6 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.3295, allocations: 19.98 kB / 418.6 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003274/0.3299, allocations: 110.5 kB / 418.7 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.3299, allocations: 4 kB / 418.7 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003677/0.3336, allocations: 4.959 MB / 423.7 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3336, allocations: 0 / 423.7 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006169/0.3342, allocations: 411.1 kB / 424.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.3344, allocations: 128.8 kB / 424.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/0.3345, allocations: 8 kB / 424.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.3347, allocations: 23.98 kB / 424.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.896e-05/0.3348, allocations: 23.91 kB / 424.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.3349, allocations: 15.98 kB / 424.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002124/0.3351, allocations: 211.1 kB / 424.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3351, allocations: 0 / 424.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007136/0.3358, allocations: 115.7 kB / 424.6 MB, free: 15.07 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.0009908/0.3368, allocations: 0.9438 MB / 425.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.3379, allocations: 0.5739 MB / 426.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.3379, allocations: 0 / 426.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005547/0.3384, allocations: 484 kB / 426.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.3389, allocations: 65.48 kB / 426.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004858/0.3438, allocations: 3.111 MB / 429.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.3442, allocations: 0.7991 MB / 430.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001338/0.3444, allocations: 22.98 kB / 430.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.3445, allocations: 111.4 kB / 430.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3445, allocations: 0 / 430.7 MB, free: 8.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04623/0.3908, allocations: 8.621 MB / 439.3 MB, free: 308 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.99, allocations: 12.19 kB / 439.3 MB, free: 300 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