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.001845/0.001845, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001993/0.001993, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.389/1.389, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 51.94 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2981, allocations: 49.43 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.005898/0.3041, allocations: 2.702 MB / 402.9 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.3059, allocations: 0.67 MB / 403.6 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002846/0.3062, allocations: 4 kB / 403.6 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003004/0.3065, allocations: 39.58 kB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000287/0.3069, allocations: 79.27 kB / 403.7 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004502/0.3073, allocations: 103.8 kB / 403.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005981/0.308, allocations: 362.5 kB / 404.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002544/0.3082, allocations: 80.7 kB / 404.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003288/0.3086, allocations: 151.5 kB / 404.4 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003033/0.3089, allocations: 151.4 kB / 404.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001315/0.3091, allocations: 32 kB / 404.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.159e-05/0.3091, allocations: 32 kB / 404.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.482e-05/0.3092, allocations: 71.67 kB / 404.7 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002053/0.3094, allocations: 151.3 kB / 404.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004668/0.3099, allocations: 341.7 kB / 405.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3099, allocations: 0 / 405.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.31, allocations: 0 / 405.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.777e-05/0.31, allocations: 0 / 405.2 MB, free: 3.832 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.001976/0.312, allocations: 0.6507 MB / 405.8 MB, free: 3.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.312, allocations: 8.031 kB / 405.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/0.3122, allocations: 62.67 kB / 405.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.3123, allocations: 28.75 kB / 405.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005795/0.3129, allocations: 268.8 kB / 406.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.544e-05/0.3129, allocations: 16.81 kB / 406.2 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.422e-05/0.313, allocations: 16.38 kB / 406.2 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.314, allocations: 310.6 kB / 406.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.314, allocations: 0 / 406.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.242e-05/0.3141, allocations: 8 kB / 406.5 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.3141, allocations: 4 kB / 406.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009984/0.3151, allocations: 273.5 kB / 406.8 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00226/0.3174, allocations: 1.062 MB / 407.9 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002416/0.3198, allocations: 438.2 kB / 408.3 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005067/0.3203, allocations: 144.8 kB / 408.4 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.3204, allocations: 4 kB / 408.4 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.3204, allocations: 34.56 kB / 408.5 MB, free: 328 kB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.903e-06/0.3204, allocations: 0 / 408.5 MB, free: 328 kB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.006403/0.3268, allocations: 1.026 MB / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.3269, allocations: 51.41 kB / 409.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.3272, allocations: 216.2 kB / 409.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.497e-05/0.3273, allocations: 29.7 kB / 409.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.3275, allocations: 164.3 kB / 409.9 MB, free: 14.78 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.3276, allocations: 51.53 kB / 410 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.3277, allocations: 41.69 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002268/0.3279, allocations: 326.8 kB / 410.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004485/0.3284, allocations: 107.9 kB / 410.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000455/0.3288, allocations: 121.6 kB / 410.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008902/0.3297, allocations: 239.9 kB / 410.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.3298, allocations: 3.938 kB / 410.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003709/0.3335, allocations: 0.6269 MB / 411.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.3335, allocations: 4 kB / 411.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.3335, allocations: 0 / 411.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009238/0.3345, allocations: 220.6 kB / 411.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.3347, allocations: 35.98 kB / 411.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007027/0.3418, allocations: 2.751 MB / 414.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.3421, allocations: 39.86 kB / 414.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.3421, allocations: 7.984 kB / 414.5 MB, free: 10.05 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.0001621/0.3423, allocations: 133.7 kB / 414.6 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/0.3423, allocations: 19.97 kB / 414.6 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.74e-05/0.3424, allocations: 25.53 kB / 414.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.3424, allocations: 3.984 kB / 414.7 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.3424, allocations: 0 / 414.7 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.3424, allocations: 0 / 414.7 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005105/0.343, allocations: 333.3 kB / 415 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.343, allocations: 0 / 415 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.3431, allocations: 27.98 kB / 415 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006321/0.3438, allocations: 216.7 kB / 415.2 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.3438, allocations: 15.92 kB / 415.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006402/0.3502, allocations: 2.735 MB / 418 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3502, allocations: 4 kB / 418 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003078/0.3533, allocations: 0.8379 MB / 418.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.507e-05/0.3534, allocations: 97 kB / 418.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/0.3534, allocations: 12.05 kB / 418.9 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.3537, allocations: 27.98 kB / 419 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.445e-05/0.3538, allocations: 15.92 kB / 419 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.3538, allocations: 7.984 kB / 419 MB, free: 5.312 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002147/0.354, allocations: 153.9 kB / 419.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3541, allocations: 3.938 kB / 419.1 MB, free: 5.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004418/0.3545, allocations: 83.89 kB / 419.2 MB, free: 5.078 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.003516/0.358, allocations: 1.385 MB / 420.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001545/0.3596, allocations: 453.1 kB / 421.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3596, allocations: 0 / 421.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.3607, allocations: 326.6 kB / 421.4 MB, free: 2.879 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004774/0.3611, allocations: 35.72 kB / 421.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008518/0.3697, allocations: 3.357 MB / 424.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.37, allocations: 0.7398 MB / 425.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.377e-05/0.3701, allocations: 17.55 kB / 425.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.675e-05/0.3702, allocations: 67.41 kB / 425.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3702, allocations: 0 / 425.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03103/0.4012, allocations: 7.318 MB / 432.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.73, allocations: 6.469 kB / 432.9 MB, free: 7.383 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