Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDeadBand.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerGrids.Controls.Test.TestDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDeadBand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDeadBand",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.009813/0.009813, allocations: 98.38 kB / 15.73 MB, free: 6.008 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.002436/0.002436, allocations: 191.1 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0676/0.0676, allocations: 14.17 MB / 284.1 MB, free: 6.98 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002272/0.002272, allocations: 68.12 kB / 396 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3487, allocations: 50.14 MB / 446.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.001947/0.3507, allocations: 0.6717 MB / 446.8 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002464/0.3509, allocations: 67.81 kB / 446.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.983e-05/0.351, allocations: 1.156 kB / 446.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.903e-05/0.351, allocations: 0 / 446.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.362e-05/0.3511, allocations: 5.062 kB / 446.9 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001494/0.3513, allocations: 15.52 kB / 446.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.3514, allocations: 26.02 kB / 446.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.3515, allocations: 11.42 kB / 446.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.284e-05/0.3516, allocations: 8.281 kB / 446.9 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.891e-05/0.3517, allocations: 15.45 kB / 446.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.6e-05/0.3517, allocations: 3.156 kB / 446.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.577e-06/0.3517, allocations: 2.312 kB / 446.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.858e-05/0.3517, allocations: 15.91 kB / 447 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.649e-05/0.3518, allocations: 10.41 kB / 447 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.589e-05/0.3519, allocations: 24.09 kB / 447 MB, free: 1.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3519, allocations: 0 / 447 MB, free: 1.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3519, allocations: 1.438 kB / 447 MB, free: 1.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.3519, allocations: 0 / 447 MB, free: 1.262 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003796/0.3523, allocations: 334.9 kB / 447.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.3523, allocations: 9.875 kB / 447.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.565e-05/0.3524, allocations: 35.86 kB / 447.4 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.024e-05/0.3524, allocations: 5.922 kB / 447.4 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.3526, allocations: 172.6 kB / 447.5 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.3526, allocations: 5.625 kB / 447.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.3526, allocations: 1.25 kB / 447.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.3528, allocations: 78.98 kB / 447.6 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.3528, allocations: 3.938 kB / 447.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.3528, allocations: 1.094 kB / 447.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.3528, allocations: 1.062 kB / 447.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001637/0.353, allocations: 36.22 kB / 447.7 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000318/0.3533, allocations: 274.1 kB / 447.9 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.3535, allocations: 76.78 kB / 448 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.152e-05/0.3536, allocations: 31.42 kB / 448 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.3536, allocations: 1.25 kB / 448 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.3536, allocations: 35.8 kB / 448.1 MB, free: 112 kB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.3537, allocations: 0.9688 kB / 448.1 MB, free: 112 kB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003619/0.354, allocations: 94.42 kB / 448.2 MB, free: 48 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.479e-05/0.3541, allocations: 111.9 kB / 448.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.3542, allocations: 98.7 kB / 448.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.3543, allocations: 27.08 kB / 448.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.663e-05/0.3543, allocations: 84.12 kB / 448.5 MB, free: 15.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.3543, allocations: 5.328 kB / 448.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.05e-05/0.3544, allocations: 21.77 kB / 448.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3545, allocations: 312 kB / 448.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.88e-05/0.3546, allocations: 26.62 kB / 448.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.3547, allocations: 43.92 kB / 448.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.3549, allocations: 51.31 kB / 448.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3549, allocations: 3.938 kB / 448.9 MB, free: 15.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002411/0.3552, allocations: 73.58 kB / 449 MB, free: 15.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.3552, allocations: 8.453 kB / 449 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3552, allocations: 1.156 kB / 449 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.3552, allocations: 1.062 kB / 449 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.3554, allocations: 11.91 kB / 449 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.3554, allocations: 1.125 kB / 449 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.328e-05/0.3554, allocations: 16.25 kB / 449 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.3555, allocations: 2.156 kB / 449 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.605e-05/0.3556, allocations: 88.59 kB / 449.1 MB, free: 15.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.424e-05/0.3556, allocations: 24.23 kB / 449.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.685e-05/0.3557, allocations: 37.2 kB / 449.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.82e-07/0.3557, allocations: 0 / 449.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001277/0.3559, allocations: 53.03 kB / 449.2 MB, free: 15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.845e-06/0.3559, allocations: 9.469 kB / 449.3 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.736e-06/0.3559, allocations: 1.062 kB / 449.3 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.286e-06/0.3559, allocations: 1.562 kB / 449.3 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.278e-05/0.3559, allocations: 8.922 kB / 449.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-06/0.356, allocations: 0 / 449.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.932e-05/0.356, allocations: 8.25 kB / 449.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-06/0.356, allocations: 1.156 kB / 449.3 MB, free: 14.99 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.3561, allocations: 181.8 kB / 449.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.3561, allocations: 2.875 kB / 449.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.938e-05/0.3562, allocations: 15.09 kB / 449.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.3562, allocations: 1.188 kB / 449.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.3562, allocations: 1.219 kB / 449.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3562, allocations: 3.938 kB / 449.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.3564, allocations: 168 kB / 449.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3564, allocations: 0 / 449.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.411e-05/0.3565, allocations: 12.83 kB / 449.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3565, allocations: 0 / 449.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.3565, allocations: 5.125 kB / 449.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3565, allocations: 1.375 kB / 449.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3565, allocations: 0 / 449.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002587/0.3568, allocations: 184.3 kB / 449.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.863e-05/0.3568, allocations: 78.39 kB / 449.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.3569, allocations: 5.359 kB / 449.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.625e-05/0.357, allocations: 7.969 kB / 449.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.016e-05/0.357, allocations: 6.422 kB / 449.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.518e-06/0.357, allocations: 1.375 kB / 449.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.343e-05/0.3571, allocations: 82.09 kB / 450 MB, free: 14.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3571, allocations: 4 kB / 450 MB, free: 14.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002713/0.3574, allocations: 7.344 kB / 450 MB, free: 14.21 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005555/0.3579, allocations: 0.7066 MB / 450.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003042/0.3582, allocations: 56.11 kB / 450.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3583, allocations: 2.312 kB / 450.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.162e-05/0.3584, allocations: 24.62 kB / 450.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.3586, allocations: 7.219 kB / 450.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.3601, allocations: 1.281 MB / 452.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.3604, allocations: 0.6768 MB / 452.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.926e-05/0.3604, allocations: 1.969 kB / 452.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.03e-05/0.3605, allocations: 13.47 kB / 452.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3605, allocations: 0 / 452.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02076/0.3813, allocations: 1.462 MB / 454.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.033/8.414, allocations: 9.719 kB / 454.3 MB, free: 10.6 MB / 334.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDeadBand.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Controls.Test.TestDeadBand_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.05 PowerGrids_PowerGrids_Controls_Test_TestDeadBand.fmu > PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDeadBand_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Controls.Test.TestDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches