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.001777/0.001777, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001996/0.001996, allocations: 197 kB / 16.53 MB, free: 6.664 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.527/1.527, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0626/0.0626, allocations: 14.16 MB / 283.9 MB, free: 7.074 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.001371/0.001371, allocations: 79.83 kB / 345.2 MB, free: 19.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09032/0.09171, allocations: 50.12 MB / 395.3 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestDeadBand): time 0.002045/0.09378, allocations: 0.6766 MB / 396 MB, free: 464 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000225/0.09403, allocations: 66.11 kB / 396 MB, free: 400 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.299e-05/0.09407, allocations: 0 / 396 MB, free: 400 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.177e-05/0.09411, allocations: 0 / 396 MB, free: 400 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.936e-05/0.09419, allocations: 11.92 kB / 396.1 MB, free: 388 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001357/0.09433, allocations: 15.98 kB / 396.1 MB, free: 372 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.912e-05/0.09442, allocations: 27.92 kB / 396.1 MB, free: 344 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.931e-05/0.09451, allocations: 7.984 kB / 396.1 MB, free: 336 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.137e-05/0.09455, allocations: 15.92 kB / 396.1 MB, free: 320 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.952e-05/0.09461, allocations: 7.984 kB / 396.1 MB, free: 312 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.09463, allocations: 4 kB / 396.1 MB, free: 308 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.768e-06/0.09464, allocations: 4 kB / 396.1 MB, free: 304 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.862e-05/0.09467, allocations: 7.938 kB / 396.1 MB, free: 296 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.297e-05/0.09469, allocations: 4 kB / 396.1 MB, free: 292 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.179e-05/0.09477, allocations: 31.83 kB / 396.2 MB, free: 260 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.09478, allocations: 4 kB / 396.2 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.09479, allocations: 0 / 396.2 MB, free: 256 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.0948, allocations: 3.938 kB / 396.2 MB, free: 252 kB / 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.0004202/0.09523, allocations: 339.7 kB / 396.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.09527, allocations: 8.031 kB / 396.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.068e-05/0.0953, allocations: 30.75 kB / 396.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.399e-05/0.09533, allocations: 4.938 kB / 396.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001666/0.0955, allocations: 168.4 kB / 396.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.175e-06/0.09552, allocations: 8.375 kB / 396.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.09554, allocations: 384 / 396.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.09573, allocations: 72.81 kB / 396.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.09575, allocations: 7.875 kB / 396.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.09576, allocations: 0 / 396.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.09577, allocations: 0 / 396.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.09597, allocations: 43.95 kB / 396.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003812/0.09636, allocations: 261.9 kB / 397.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001788/0.09655, allocations: 77 kB / 397.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.09666, allocations: 33.75 kB / 397.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.09668, allocations: 4 kB / 397.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.09671, allocations: 30.56 kB / 397.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.09672, allocations: 0 / 397.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003775/0.0971, allocations: 97.48 kB / 397.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.09718, allocations: 106.8 kB / 397.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.057e-05/0.09726, allocations: 97.86 kB / 397.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.09728, allocations: 25.7 kB / 397.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.434e-05/0.09733, allocations: 84.33 kB / 397.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.09736, allocations: 15.89 kB / 397.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-05/0.09741, allocations: 13.72 kB / 397.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.09754, allocations: 318.8 kB / 398 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.905e-05/0.09764, allocations: 16.84 kB / 398 MB, free: 14.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.736e-05/0.09774, allocations: 42.55 kB / 398.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/0.09791, allocations: 49.69 kB / 398.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.09792, allocations: 3.938 kB / 398.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000217/0.09814, allocations: 77.66 kB / 398.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.09817, allocations: 4 kB / 398.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.09818, allocations: 0 / 398.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.0982, allocations: 4 kB / 398.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.446e-05/0.0983, allocations: 7.984 kB / 398.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.09832, allocations: 4 kB / 398.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.934e-05/0.09838, allocations: 11.91 kB / 398.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.0984, allocations: 0 / 398.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.233e-05/0.09849, allocations: 96.06 kB / 398.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.055e-05/0.09856, allocations: 34.81 kB / 398.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.893e-05/0.09864, allocations: 25.72 kB / 398.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.81e-07/0.09865, allocations: 0 / 398.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization_lambda0): time 0.0001267/0.09878, allocations: 57.56 kB / 398.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.0988, allocations: 8.094 kB / 398.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-06/0.09881, allocations: 0 / 398.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.857e-06/0.09882, allocations: 4.078 kB / 398.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.736e-05/0.09886, allocations: 8 kB / 398.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.656e-06/0.09887, allocations: 3.984 kB / 398.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.339e-05/0.09892, allocations: 11.92 kB / 398.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-06/0.09893, allocations: 3.938 kB / 398.5 MB, free: 13.66 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 0.0001043/0.09903, allocations: 189.3 kB / 398.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.658e-05/0.09907, allocations: 3.984 kB / 398.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.186e-05/0.09909, allocations: 7.125 kB / 398.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.0991, allocations: 4 kB / 398.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.09911, allocations: 0 / 398.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.09912, allocations: 0 / 398.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001721/0.0993, allocations: 165.6 kB / 398.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.09931, allocations: 4 kB / 398.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.101e-05/0.09937, allocations: 11.94 kB / 398.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.09938, allocations: 0 / 398.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.0994, allocations: 0 / 398.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.0994, allocations: 0 / 398.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.09941, allocations: 4 kB / 398.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/0.09966, allocations: 172.3 kB / 399 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.353e-05/0.09971, allocations: 89 kB / 399.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.09973, allocations: 0 / 399.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.064e-05/0.09982, allocations: 8 kB / 399.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.09e-05/0.09989, allocations: 11.98 kB / 399.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.0999, allocations: 0 / 399.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.672e-05/0.09995, allocations: 79.28 kB / 399.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09995, allocations: 0 / 399.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002722/0.1002, allocations: 8 kB / 399.2 MB, free: 12.82 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.0005377/0.1008, allocations: 0.7131 MB / 399.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002599/0.101, allocations: 51.89 kB / 400 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1011, allocations: 4.25 kB / 400 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.003e-05/0.1012, allocations: 23.98 kB / 400 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.1014, allocations: 10.44 kB / 400 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.1029, allocations: 1.275 MB / 401.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.1032, allocations: 0.6768 MB / 402 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.137e-05/0.1033, allocations: 4 kB / 402 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.647e-05/0.1033, allocations: 11.44 kB / 402 MB, free: 9.906 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1033, allocations: 0 / 402 MB, free: 9.906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.1296, allocations: 1.444 MB / 403.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.667/9.796, allocations: 4.75 kB / 403.4 MB, free: 8.461 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestDeadBand_res.mat --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestDeadBand_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestDeadBand.fmu > PowerGrids_PowerGrids.Controls.Test.TestDeadBand.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestDeadBand_res.mat","/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