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.001426/0.001426, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.001809/0.001809, allocations: 192 kB / 18 MB, free: 4.977 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.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 47.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2854, allocations: 49.43 MB / 400.2 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004326/0.2898, allocations: 2.697 MB / 402.9 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.2911, allocations: 0.67 MB / 403.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.2913, allocations: 7.938 kB / 403.6 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.2914, allocations: 43.56 kB / 403.7 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.2916, allocations: 79.27 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000302/0.2919, allocations: 95.8 kB / 403.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003534/0.2923, allocations: 362.5 kB / 404.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.2925, allocations: 84.72 kB / 404.3 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002162/0.2927, allocations: 143.5 kB / 404.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/0.2929, allocations: 163.4 kB / 404.6 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.587e-05/0.293, allocations: 28 kB / 404.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.377e-05/0.293, allocations: 36 kB / 404.6 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.521e-05/0.2931, allocations: 67.77 kB / 404.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.2932, allocations: 147.2 kB / 404.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003561/0.2936, allocations: 344.5 kB / 405.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.2936, allocations: 0 / 405.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2936, allocations: 0 / 405.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.2936, allocations: 0 / 405.2 MB, free: 3.902 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001498/0.2951, allocations: 0.6393 MB / 405.8 MB, free: 3.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.2952, allocations: 8.031 kB / 405.8 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.548e-05/0.2953, allocations: 62.72 kB / 405.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.106e-05/0.2953, allocations: 28.56 kB / 405.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003943/0.2957, allocations: 260.7 kB / 406.2 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.2958, allocations: 12.81 kB / 406.2 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.58e-05/0.2959, allocations: 24.31 kB / 406.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006446/0.2965, allocations: 302.7 kB / 406.5 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2965, allocations: 0 / 406.5 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.2966, allocations: 11.98 kB / 406.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.2966, allocations: 8 kB / 406.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007533/0.2973, allocations: 265.5 kB / 406.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.299, allocations: 1.062 MB / 407.8 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001932/0.3009, allocations: 446.3 kB / 408.3 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003996/0.3014, allocations: 140.8 kB / 408.4 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.3014, allocations: 4 kB / 408.4 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.3015, allocations: 42.55 kB / 408.5 MB, free: 412 kB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.3015, allocations: 0 / 408.5 MB, free: 412 kB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004891/0.3064, allocations: 1.02 MB / 409.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.3064, allocations: 55.41 kB / 409.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.3067, allocations: 216.2 kB / 409.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.3067, allocations: 29.7 kB / 409.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.3069, allocations: 156 kB / 409.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.424e-05/0.3069, allocations: 55.3 kB / 410 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.524e-05/0.307, allocations: 37.69 kB / 410 MB, free: 14.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3072, allocations: 326.8 kB / 410.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003355/0.3075, allocations: 103.9 kB / 410.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003546/0.3079, allocations: 137.5 kB / 410.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006369/0.3085, allocations: 223.9 kB / 410.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.3085, allocations: 3.938 kB / 410.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002692/0.3112, allocations: 0.6384 MB / 411.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.3113, allocations: 4 kB / 411.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3113, allocations: 0 / 411.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000712/0.312, allocations: 220.7 kB / 411.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.3122, allocations: 35.98 kB / 411.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006645/0.3188, allocations: 2.739 MB / 414.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.3192, allocations: 31.86 kB / 414.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.3192, allocations: 7.984 kB / 414.5 MB, free: 10.16 MB / 334.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.000172/0.3194, allocations: 141.8 kB / 414.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.31e-05/0.3194, allocations: 19.81 kB / 414.6 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.392e-05/0.3195, allocations: 21.52 kB / 414.6 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.3195, allocations: 0 / 414.6 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.3195, allocations: 4 kB / 414.6 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.3195, allocations: 0 / 414.6 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003968/0.3199, allocations: 329.2 kB / 415 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3199, allocations: 0 / 415 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.3201, allocations: 31.98 kB / 415 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006451/0.3207, allocations: 224.7 kB / 415.2 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.3208, allocations: 3.984 kB / 415.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006459/0.3272, allocations: 2.731 MB / 418 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3273, allocations: 0 / 418 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003167/0.3304, allocations: 0.851 MB / 418.8 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.199e-05/0.3306, allocations: 104.8 kB / 418.9 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.3306, allocations: 0 / 418.9 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.3309, allocations: 35.97 kB / 418.9 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.451e-05/0.331, allocations: 7.984 kB / 418.9 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.331, allocations: 4 kB / 419 MB, free: 5.422 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001463/0.3311, allocations: 161.8 kB / 419.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.3311, allocations: 7.938 kB / 419.1 MB, free: 5.258 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004645/0.3316, allocations: 83.78 kB / 419.2 MB, free: 5.176 MB / 334.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.003414/0.335, allocations: 1.375 MB / 420.6 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.3366, allocations: 449.5 kB / 421 MB, free: 3.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.3366, allocations: 0 / 421 MB, free: 3.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.3376, allocations: 330.5 kB / 421.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.3381, allocations: 36.59 kB / 421.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008514/0.3466, allocations: 3.348 MB / 424.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.3469, allocations: 0.7398 MB / 425.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.3471, allocations: 17.55 kB / 425.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.3472, allocations: 67.41 kB / 425.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3472, allocations: 0 / 425.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03088/0.3781, allocations: 7.324 MB / 432.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.65, allocations: 2.406 kB / 432.9 MB, free: 7.496 MB / 350.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