Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.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.TestDiscontinuousDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestDiscontinuousDeadBand,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand",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.001141/0.001141, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00119/0.00119, allocations: 192.2 kB / 16.13 MB, free: 6.711 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.145/1.145, allocations: 205.1 MB / 222 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05706/0.05706, allocations: 14.15 MB / 283.5 MB, free: 7.316 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.001335/0.001335, allocations: 67.91 kB / 344.5 MB, free: 19.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07395/0.07529, allocations: 50.13 MB / 394.6 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDiscontinuousDeadBand): time 0.001745/0.07708, allocations: 0.7547 MB / 395.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001835/0.07728, allocations: 55.81 kB / 395.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.06e-05/0.07732, allocations: 0 / 395.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.721e-05/0.07737, allocations: 0 / 395.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.174e-05/0.07744, allocations: 4 kB / 395.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001208/0.07757, allocations: 19.97 kB / 395.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.34e-05/0.07764, allocations: 19.92 kB / 395.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.637e-05/0.07772, allocations: 8 kB / 395.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.399e-05/0.07775, allocations: 7.938 kB / 395.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.188e-05/0.0778, allocations: 11.98 kB / 395.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.07781, allocations: 0 / 395.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.005e-06/0.07783, allocations: 4 kB / 395.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.548e-05/0.07785, allocations: 7.922 kB / 395.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.11e-05/0.07787, allocations: 4 kB / 395.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.899e-05/0.07794, allocations: 23.91 kB / 395.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.07794, allocations: 0 / 395.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.07795, allocations: 0 / 395.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.406e-06/0.07796, allocations: 0 / 395.5 MB, free: 0.6523 MB / 286.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.0003316/0.07829, allocations: 339.7 kB / 395.9 MB, free: 276 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.07834, allocations: 12.03 kB / 395.9 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.635e-05/0.07837, allocations: 34.69 kB / 395.9 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.016e-05/0.07839, allocations: 0.9375 kB / 395.9 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.07852, allocations: 172.4 kB / 396.1 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.07854, allocations: 4.375 kB / 396.1 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.07857, allocations: 8.359 kB / 396.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.07873, allocations: 68.77 kB / 396.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.07875, allocations: 3.938 kB / 396.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.07876, allocations: 4 kB / 396.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.07877, allocations: 0 / 396.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001396/0.07891, allocations: 39.89 kB / 396.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002952/0.07922, allocations: 261.9 kB / 396.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.07937, allocations: 77.06 kB / 396.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.943e-05/0.07946, allocations: 29.7 kB / 396.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.731e-05/0.07949, allocations: 4 kB / 396.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.07951, allocations: 38.55 kB / 396.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.07952, allocations: 0 / 396.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003025/0.07982, allocations: 93.5 kB / 396.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.07989, allocations: 106.8 kB / 396.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.506e-05/0.07995, allocations: 97.84 kB / 396.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.07997, allocations: 29.7 kB / 396.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.119e-05/0.08001, allocations: 84.14 kB / 397 MB, free: 14.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/0.08003, allocations: 4.156 kB / 397 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.08007, allocations: 25.7 kB / 397 MB, free: 14.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.144e-05/0.08015, allocations: 310.8 kB / 397.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.209e-05/0.08024, allocations: 28.78 kB / 397.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.638e-05/0.08033, allocations: 34.55 kB / 397.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.08046, allocations: 45.72 kB / 397.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.08047, allocations: 3.938 kB / 397.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000177/0.08065, allocations: 73.61 kB / 397.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.08067, allocations: 12.05 kB / 397.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.08068, allocations: 4 kB / 397.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.288e-06/0.0807, allocations: 0 / 397.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.342e-05/0.08077, allocations: 8 kB / 397.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.08078, allocations: 0 / 397.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.888e-05/0.08084, allocations: 11.89 kB / 397.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.08085, allocations: 4 kB / 397.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 6.514e-05/0.08092, allocations: 89.22 kB / 397.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.248e-05/0.08097, allocations: 26.58 kB / 397.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.168e-05/0.08105, allocations: 33.64 kB / 397.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.81e-07/0.08105, allocations: 0 / 397.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001059/0.08116, allocations: 57.56 kB / 397.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.262e-06/0.08118, allocations: 4 kB / 397.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-06/0.08118, allocations: 4.094 kB / 397.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-06/0.08119, allocations: 4 kB / 397.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.231e-05/0.08123, allocations: 7.984 kB / 397.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.08124, allocations: 3.984 kB / 397.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.591e-05/0.08128, allocations: 15.88 kB / 397.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-06/0.08129, allocations: 0 / 397.8 MB, free: 14.07 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 (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 7.268e-05/0.08136, allocations: 196.1 kB / 398 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.266e-05/0.08139, allocations: 0 / 398 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.789e-05/0.08141, allocations: 11.11 kB / 398 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.08142, allocations: 4 kB / 398 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.08143, allocations: 0 / 398 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.08143, allocations: 0 / 398 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.08158, allocations: 161.6 kB / 398.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.08159, allocations: 0 / 398.2 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.291e-05/0.08164, allocations: 11.98 kB / 398.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.08165, allocations: 0 / 398.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-06/0.08166, allocations: 4 kB / 398.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.08167, allocations: 3.938 kB / 398.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.08167, allocations: 0 / 398.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001931/0.08187, allocations: 172.3 kB / 398.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.868e-05/0.08191, allocations: 85.02 kB / 398.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.08193, allocations: 4 kB / 398.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.092e-05/0.082, allocations: 7.984 kB / 398.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.362e-05/0.08204, allocations: 11.98 kB / 398.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.08205, allocations: 0 / 398.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.111e-05/0.08209, allocations: 79.28 kB / 398.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.08209, allocations: 0 / 398.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002467/0.08234, allocations: 8 kB / 398.6 MB, free: 13.23 MB / 302.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.0003922/0.08274, allocations: 0.7098 MB / 399.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002109/0.08296, allocations: 55.89 kB / 399.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.08297, allocations: 0 / 399.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.49e-05/0.08305, allocations: 24.22 kB / 399.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001972/0.08326, allocations: 10.5 kB / 399.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.08438, allocations: 1.269 MB / 400.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001753/0.08457, allocations: 0.6809 MB / 401.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.971e-05/0.08461, allocations: 4 kB / 401.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.08465, allocations: 11.42 kB / 401.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.08465, allocations: 4 kB / 401.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009453/0.09411, allocations: 1.225 MB / 402.5 MB, free: 9.129 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.09431, allocations: 201.3 kB / 402.7 MB, free: 8.871 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.557/1.651, allocations: 0 / 402.7 MB, free: 8.871 MB / 302.1 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestDiscontinuousDeadBand.fmu > PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestDiscontinuousDeadBand_res.mat","../files/PowerGrids_PowerGrids.Controls.Test.TestDiscontinuousDeadBand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches