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.001177/0.001177, allocations: 103.9 kB / 16.92 MB, free: 5.766 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.001254/0.001254, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.407/1.407, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 46.39 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09921/0.1003, allocations: 49.44 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005487/0.1058, allocations: 3.47 MB / 353.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002461/0.1083, allocations: 0.7558 MB / 354.4 MB, free: 84 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005851/0.1089, allocations: 4 kB / 354.4 MB, free: 80 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003777/0.1094, allocations: 71.3 kB / 354.5 MB, free: 8 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006526/0.1101, allocations: 134.9 kB / 354.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.1105, allocations: 103.8 kB / 354.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009796/0.1115, allocations: 0.5131 MB / 355.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003697/0.1119, allocations: 139.2 kB / 355.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004676/0.1124, allocations: 187.3 kB / 355.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000466/0.1129, allocations: 203.1 kB / 355.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001341/0.113, allocations: 40 kB / 355.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.1132, allocations: 43.94 kB / 355.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.1134, allocations: 95.61 kB / 355.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004165/0.1138, allocations: 214.9 kB / 356.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007893/0.1146, allocations: 482.3 kB / 356.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.1146, allocations: 0 / 356.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.538e-06/0.1146, allocations: 4 kB / 356.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.176e-05/0.1147, allocations: 3.938 kB / 356.6 MB, free: 13.87 MB / 302.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.001641/0.1163, allocations: 0.7207 MB / 357.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.109e-05/0.1164, allocations: 12.03 kB / 357.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001215/0.1165, allocations: 66.72 kB / 357.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000199/0.1167, allocations: 48.38 kB / 357.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005608/0.1173, allocations: 315.2 kB / 357.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.1173, allocations: 29.03 kB / 357.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-05/0.1174, allocations: 28.38 kB / 357.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007735/0.1182, allocations: 358.9 kB / 358.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1182, allocations: 0 / 358.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.1182, allocations: 12 kB / 358.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.1183, allocations: 11.94 kB / 358.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006622/0.1189, allocations: 266.5 kB / 358.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002983/0.1219, allocations: 1.419 MB / 359.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005412/0.1225, allocations: 230.3 kB / 360.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.1228, allocations: 108.8 kB / 360.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.672e-05/0.1228, allocations: 4 kB / 360.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.112e-05/0.1229, allocations: 30.56 kB / 360.2 MB, free: 10 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.1229, allocations: 0 / 360.2 MB, free: 10 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001789/0.1247, allocations: 0.7038 MB / 360.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.1247, allocations: 55.41 kB / 361 MB, free: 9.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004294/0.1252, allocations: 304.6 kB / 361.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.1252, allocations: 29.7 kB / 361.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.1254, allocations: 212.1 kB / 361.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.952e-05/0.1255, allocations: 82.83 kB / 361.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.1256, allocations: 49.7 kB / 361.6 MB, free: 8.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.1258, allocations: 338.8 kB / 362 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002417/0.1261, allocations: 79.97 kB / 362 MB, free: 8.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.1263, allocations: 124.2 kB / 362.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003956/0.1267, allocations: 204.1 kB / 362.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.1267, allocations: 0 / 362.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007608/0.1275, allocations: 359.4 kB / 362.7 MB, free: 7.328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.1275, allocations: 10.81 kB / 362.7 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.1275, allocations: 0 / 362.7 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004378/0.128, allocations: 118.6 kB / 362.8 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.1282, allocations: 31.91 kB / 362.9 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00445/0.1326, allocations: 4.974 MB / 367.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.133, allocations: 23.94 kB / 367.9 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.92e-05/0.133, allocations: 11.94 kB / 367.9 MB, free: 1.742 MB / 302.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.0003188/0.1333, allocations: 157.6 kB / 368 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.121e-05/0.1334, allocations: 31.62 kB / 368.1 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.034e-05/0.1335, allocations: 39.17 kB / 368.1 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1335, allocations: 0 / 368.1 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1335, allocations: 0 / 368.1 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.1335, allocations: 8 kB / 368.1 MB, free: 1.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005418/0.1341, allocations: 373.2 kB / 368.5 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1341, allocations: 0 / 368.5 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.1342, allocations: 19.98 kB / 368.5 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003682/0.1346, allocations: 122.4 kB / 368.6 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.1346, allocations: 4 kB / 368.6 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1945/0.3292, allocations: 4.964 MB / 373.6 MB, free: 21.26 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3292, allocations: 0.5312 kB / 373.6 MB, free: 21.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006558/0.3299, allocations: 401.6 kB / 374 MB, free: 21.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.33, allocations: 133.2 kB / 374.1 MB, free: 21.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.741e-05/0.3301, allocations: 1.531 kB / 374.1 MB, free: 21.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002367/0.3303, allocations: 21.55 kB / 374.1 MB, free: 21.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.3304, allocations: 30.84 kB / 374.2 MB, free: 21.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.3304, allocations: 5.281 kB / 374.2 MB, free: 21.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002723/0.3307, allocations: 219 kB / 374.4 MB, free: 20.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3307, allocations: 0 / 374.4 MB, free: 20.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007176/0.3314, allocations: 113.3 kB / 374.5 MB, free: 20.92 MB / 302.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.0008652/0.3323, allocations: 0.9465 MB / 375.4 MB, free: 20.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009889/0.3333, allocations: 0.5815 MB / 376 MB, free: 19.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3333, allocations: 0 / 376 MB, free: 19.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000482/0.3338, allocations: 484.2 kB / 376.5 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005199/0.3344, allocations: 55.62 kB / 376.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0044/0.3388, allocations: 3.138 MB / 379.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003896/0.3392, allocations: 0.7961 MB / 380.5 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001759/0.3394, allocations: 28.58 kB / 380.5 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.3395, allocations: 113.3 kB / 380.6 MB, free: 16.75 MB / 302.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3395, allocations: 3.938 kB / 380.6 MB, free: 16.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03716/0.3767, allocations: 8.432 MB / 389.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.23, allocations: 17.44 kB / 389.1 MB, free: 14.48 MB / 302.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