Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",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.001538/0.001538, allocations: 106.7 kB / 16.92 MB, free: 5.781 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.002159/0.00216, allocations: 191.5 kB / 17.85 MB, free: 5.195 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.386/1.386, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 47.2 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09684/0.09802, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004212/0.1023, allocations: 2.691 MB / 352.8 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.1037, allocations: 0.67 MB / 353.5 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002578/0.104, allocations: 4 kB / 353.5 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002053/0.1042, allocations: 47.56 kB / 353.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002204/0.1045, allocations: 71.28 kB / 353.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003711/0.1049, allocations: 103.8 kB / 353.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004931/0.1054, allocations: 362.5 kB / 354.1 MB, free: 364 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00023/0.1056, allocations: 84.7 kB / 354.2 MB, free: 276 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.1059, allocations: 139.5 kB / 354.3 MB, free: 136 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.1061, allocations: 159.4 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.139e-05/0.1062, allocations: 32 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.202e-05/0.1062, allocations: 31.94 kB / 354.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.978e-05/0.1063, allocations: 75.75 kB / 354.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.1065, allocations: 147.3 kB / 354.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003538/0.1068, allocations: 339.1 kB / 355.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1068, allocations: 4 kB / 355.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1069, allocations: 0 / 355.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.1069, allocations: 0 / 355.1 MB, free: 15.36 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001577/0.1085, allocations: 0.6378 MB / 355.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.1085, allocations: 16.03 kB / 355.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.552e-05/0.1086, allocations: 50.73 kB / 355.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.338e-05/0.1087, allocations: 28.66 kB / 355.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.1091, allocations: 260.7 kB / 356.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.1091, allocations: 16.75 kB / 356.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/0.1091, allocations: 20.38 kB / 356.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006788/0.1098, allocations: 306.7 kB / 356.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1098, allocations: 0 / 356.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.1099, allocations: 8 kB / 356.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.1099, allocations: 7.984 kB / 356.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007899/0.1107, allocations: 269.5 kB / 356.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.1124, allocations: 1.066 MB / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.1144, allocations: 438.3 kB / 358.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004137/0.1148, allocations: 152.8 kB / 358.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.1148, allocations: 0 / 358.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.1149, allocations: 34.56 kB / 358.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.1149, allocations: 0 / 358.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.004977/0.1199, allocations: 1.037 MB / 359.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.1199, allocations: 55.41 kB / 359.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.1202, allocations: 212.2 kB / 359.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.1202, allocations: 29.7 kB / 359.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1203, allocations: 160.1 kB / 359.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.182e-05/0.1204, allocations: 47.27 kB / 359.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.298e-05/0.1205, allocations: 37.69 kB / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1206, allocations: 330.8 kB / 360.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000345/0.121, allocations: 111.9 kB / 360.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003461/0.1213, allocations: 128.6 kB / 360.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006607/0.122, allocations: 221.5 kB / 360.7 MB, free: 9.441 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.122, allocations: 3.938 kB / 360.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002874/0.1249, allocations: 0.6383 MB / 361.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.1249, allocations: 10.95 kB / 361.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.892e-06/0.1249, allocations: 4 kB / 361.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007172/0.1256, allocations: 212.7 kB / 361.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.1258, allocations: 35.98 kB / 361.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00691/0.1327, allocations: 2.754 MB / 364.4 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.1331, allocations: 31.86 kB / 364.4 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.1331, allocations: 11.98 kB / 364.4 MB, free: 5.598 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.1333, allocations: 137.8 kB / 364.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.437e-05/0.1333, allocations: 23.72 kB / 364.6 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.965e-05/0.1334, allocations: 21.52 kB / 364.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1334, allocations: 4 kB / 364.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.1334, allocations: 0 / 364.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1334, allocations: 0 / 364.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003859/0.1338, allocations: 325.3 kB / 364.9 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1338, allocations: 8 kB / 364.9 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.134, allocations: 27.98 kB / 364.9 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006445/0.1346, allocations: 224.6 kB / 365.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.1347, allocations: 3.984 kB / 365.2 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006539/0.1412, allocations: 2.723 MB / 367.9 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1412, allocations: 0 / 367.9 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003266/0.1445, allocations: 0.8472 MB / 368.7 MB, free: 1.043 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.574e-05/0.1446, allocations: 100.9 kB / 368.8 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.089e-05/0.1446, allocations: 4 kB / 368.8 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003003/0.1449, allocations: 35.91 kB / 368.9 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.145, allocations: 16 kB / 368.9 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.145, allocations: 12 kB / 368.9 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000144/0.1452, allocations: 157.8 kB / 369 MB, free: 0.707 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1452, allocations: 4 kB / 369 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005247/0.1457, allocations: 75.84 kB / 369.1 MB, free: 0.6289 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1717/0.3174, allocations: 1.383 MB / 370.5 MB, free: 25.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.319, allocations: 443.8 kB / 370.9 MB, free: 24.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.319, allocations: 1.125 kB / 370.9 MB, free: 24.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.3201, allocations: 330.9 kB / 371.3 MB, free: 24.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.3205, allocations: 37.5 kB / 371.3 MB, free: 24.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008157/0.3287, allocations: 3.33 MB / 374.6 MB, free: 23.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.3288, allocations: 0.748 MB / 375.4 MB, free: 22.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.375e-05/0.3289, allocations: 17.58 kB / 375.4 MB, free: 22.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.232e-05/0.329, allocations: 67.47 kB / 375.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.329, allocations: 0 / 375.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02761/0.3566, allocations: 7.215 MB / 382.7 MB, free: 21.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.07, allocations: 5.984 kB / 382.7 MB, free: 21.13 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv --start-time 0 --stop-time 0.4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00016 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches